Skip to content

Docker Nginx with Let's Encrypt client (certbot) and crond for auto renew. Let's Encrypt 証明書自動更新機能付きNginx Dockerコンテナ

License

Notifications You must be signed in to change notification settings

IchikawaYukko/docker-nginx_letsencrypt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Docker Nginx with Let's Encrypt client (certbot) and crond for auto renew. Let's Encrypt 証明書自動更新機能付きNginx Dockerコンテナ

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published