nginx-with-lets-encrypt-in-docker-example
nginx-with-lets-encrypt-in-docker-example copied to clipboard
nginx with Let's Encrypt in Docker container configuration example
A complete example to the article
Content
nginx/Dockerfile- image ofnginxwith installedCertbotnginx/entrypoint.sh- image's entrypointnginx/nginx.conf-nginxconfigurationnginx/renew- certificates renew scriptdocker-compose.yml- compose configuration with letsencrypt volume
How to run
- Replace
example.comwith your domain inentrypoint.shandnginx.conf - Replace
[email protected]with your email inentrypoint.sh docker-compose builddocker-compose up -d
License
This code is MIT License.