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.
- Set in
docker-compose.yml
the REGISTRY_USER, REGISTRY_PASSWORD and DOMAIN on the Nginx args. - On
ssl_gen
set DOMAIN value with your domain. docker-compose up -d
chmod +x *.sh && ./ssl_gen.sh
- After it succeeds, start it with
docker-compose restart
docker login my-repo-url.com
give your user name/pass- It should say
Login Succeeded
This will schedule a renewal of the SSL cert with Let's Encrypt every 15 days.
crontab -u $USER -e
0 0 */15 * * /path/to/registry_files/ssl_renew.sh