A complete example to the article
nginx/Dockerfile
- image ofnginx
with installedCertbot
nginx/entrypoint.sh
- image's entrypointnginx/nginx.conf
-nginx
configurationnginx/renew
- certificates renew scriptdocker-compose.yml
- compose configuration with letsencrypt volume
- 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
This code is MIT License.