Nginx with Let's Encrypt client (certbot) and crond for auto renew.
1.4K
Nginx with Let's Encrypt client (certbot) and crond for auto renew.
Set HEALTHCHECK_URL (You will host that in this container) in docker-compose.yml
And just run
docker-compose up -d
Run
docker-compose exec nginx sh
Then you will get into container's prompt.
And run
certbot certonly --webroot -w /var/www/html -d YOUR_DOMAIN
to get certificate.
Renew job will be automatically run by crond on every Monday 0:00.
So you don't need to run manually.
Renew job will reload nginx to apply new certificates.
If it fails renewing, you can run certbot renew to investigate.
Content type
Image
Digest
sha256:272679abf…
Size
49.7 MB
Last updated
5 months ago
docker pull ichikawayukko/nginx_letsencrypt