Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fzuleta/private-docker-registry-ssl
Private Docker registry protected with Let's Encrypt SSL
https://github.com/fzuleta/private-docker-registry-ssl
Last synced: 3 months ago
JSON representation
Private Docker registry protected with Let's Encrypt SSL
- Host: GitHub
- URL: https://github.com/fzuleta/private-docker-registry-ssl
- Owner: fzuleta
- License: gpl-3.0
- Created: 2018-03-18T13:57:44.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-20T13:44:35.000Z (over 5 years ago)
- Last Synced: 2024-06-03T09:45:54.043Z (5 months ago)
- Language: Shell
- Homepage:
- Size: 24.4 KB
- Stars: 41
- Watchers: 2
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Five-step setup for private Docker repository with Let's Encrypt SSL
Make sure you have a domain name and SSH access to an instance. This works well under a DigitalOcean's Ubuntu with Docker and Docker Compose installed.
## Steps
1. Set in `docker-compose.yml` the **REGISTRY_USER, REGISTRY_PASSWORD and DOMAIN** on the Nginx args.
2. On `ssl_gen` set **DOMAIN** value with your domain.
3. `docker-compose up -d`
4. `chmod +x *.sh && ./ssl_gen.sh`
5. After it succeeds, start it with `docker-compose restart`## After it succeeds
1. `docker login my-repo-url.com` give your user name/pass
2. It should say `Login Succeeded`# Automatic cron setup
This will schedule a renewal of the SSL cert with Let's Encrypt every 15 days.
1. `crontab -u $USER -e`
2. `0 0 */15 * * /path/to/registry_files/ssl_renew.sh`### Need to install Docker in your VPS machine?
https://docs.docker.com/install/linux/docker-ce/ubuntu/https://docs.docker.com/compose/install/
### Be sure to donate to **letsencrypt.org**!