Sign inSign up

ichikawayukko/nginx_letsencrypt

By ichikawayukko

•Updated 5 months ago

Nginx with Let's Encrypt client (certbot) and crond for auto renew.

Image
0

1.4K

ichikawayukko/nginx_letsencrypt repository overview

⁠docker-nginx_letsencrypt

Nginx with Let's Encrypt client (certbot) and crond for auto renew.

⁠Usage

⁠Launch server

Set HEALTHCHECK_URL (You will host that in this container) in docker-compose.yml

And just run

docker-compose up -d

⁠Get new certificate (or add domains)

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 certificate (Auto!!)

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.

Tag summary

Content type

Image

Digest

sha256:272679abf…

Size

49.7 MB

Last updated

5 months ago

docker pull ichikawayukko/nginx_letsencrypt