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 ofnginx
with installedCertbot
-
nginx/entrypoint.sh
- image's entrypoint -
nginx/nginx.conf
-nginx
configuration -
nginx/renew
- certificates renew script -
docker-compose.yml
- compose configuration with letsencrypt volume
How to run
- Replace
example.com
with your domain inentrypoint.sh
andnginx.conf
- Replace
[email protected]
with your email inentrypoint.sh
-
docker-compose build
-
docker-compose up -d
License
This code is MIT License.