Sinopia is a private npm repository server.
Had to downgrade to node v10 for stability. The storage path is also changed in the config.yaml to handle the edge case where htpasswd is installed via npm.
need to double check this because I probably won't maintain an nginx repo any longer, nginx-proxy by jwilder is 99.9% identical and kept up to speed.
Generate ssl files on server:
mkdir -p /path/to/certs && cd /path/to/certs
openssl req -out site.com.csr -new -newkey rsa:2048 -nodes -keyout site.com.key
openssl dhparam -out site.com.dhparam.pem 2048
Run nginx-proxy container:
docker run -d -p 80:80 -p 443:443 -v /path/to/certs:/etc/nginx/certs -v /var/run/docker.sock:/tmp/docker.sock:ro jwilder/nginx-proxy
Run sinopia container:
mkdir -p /path/to/storage
mkdir -p /path/to/config.yaml
edit config.yaml
docker run -e VIRTUAL_HOST=site.com \ -v /path/to/storage:/sinopia/storage \ -v /path/to/config.yaml:/sinopia/config.yaml \ --name sinopia -d -P rnbwd/sinopia
docker run --name sinopia -d -p 4873:4873 rnbwd/sinopia
docker run --name sinopia -d -p 4873:4873 -v <local-path-to-storage>:/sinopia/storage rnbwd/sinopia
To attach a custom config.yaml
docker run -v :/sinopia/config.yaml
-d -p 4873:4873 rnbwd/sinopia`
To modify config.yaml, update local config then restart
docker restart sinopia
git clone https://github.com/RnbWd/sinopia-docker.git
cd sinopia-docker
docker build -t sinopia .
docker run -d -p 4873:4873 sinopia
After running the nginx-proxy, run the sinopia container with env var VIRTUAL_HOST
docker run -e VIRTUAL_HOST=foo.bar.com \
-v <local-path-to-config>:/sinopia/config.yaml \
--name sinopia -d -P jwilder/sinopia
Content type
Image
Digest
Size
126 MB
Last updated
over 10 years ago
docker pull dunasdan/sinopia