Sinopia is a private npm repository server. This version uploads its npm packages into an S3 bucket for easy (and automatic) backup.
docker pull ndigati/docker-sinopia
docker run --name sinopia -d -e AWS_ACCESS_KEY_ID=<fill-in> -e AWS_SECRET_ACCESS_KEY=<fill-in> -e SINOPIA_BUCKET=<fill-in> -p 4873:4873 sinopia
npm set registry http://<docker_host_ip>:4873/
- Clone the repo:
git clone https://github.com/ndigati/docker-sinopia.git
- Change to new directory and build the image:
cd docker-sinopia
docker build -t sinopia .
- Run the container:
docker run --name sinopia -d -e AWS_ACCESS_KEY_ID=<fill-in> -e AWS_SECRET_ACCESS_KEY=<fill-in> -e SINOPIA_BUCKET=<fill-in> -e SINOPIA_CONFIG=<fill-in> -p 4873:4873 sinopia
4. Sinopia should now be running on your machine at `<docker_host_ip>:4873` and syncing its contents to an S3 bucket `$SINOPIA_BUCKET`
# Links
- [Sinopia on Github](https://github.com/rlidwka/sinopia)
- [Sinopia's own Docker image](https://hub.docker.com/r/keyvanfatehi/sinopia/)