- Test generating a cert:
docker-compose run --rm certbot \ certonly --webroot \ --register-unsafely-without-email --agree-tos \ --webroot-path=/data/letsencrypt \ --staging -d www.example.com
- Generate the real cert:
docker-compose run --rm certbot \ certonly --webroot \ --email me@example.com \ --agree-tos --no-eff-email \ --webroot-path=/data/letsencrypt \ -d www.example.com
- Renew the cert:
docker-compose run --rm certbot \ renew --webroot \ --webroot-path=/data/letsencrypt
- Cron job to renew cert and reload nginx:
0 4 * * * cd /home/deploy/docker-letsencrypt && /usr/local/bin/docker-compose -f docker-compose.yml -f env/prod/compose.yml run --rm certbot renew --webroot --webroot-path=/data/letsencrypt --quiet && /usr/local/bin/docker-compose -f docker-compose.yml -f env/prod/compose.yml kill -s HUP web
-
Notifications
You must be signed in to change notification settings - Fork 0
A proof of concept for creating and renewing SSL certificates with LetsEncrypt in a docker-compose environment
discopatrick/docker-letsencrypt
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A proof of concept for creating and renewing SSL certificates with LetsEncrypt in a docker-compose environment
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published