Docker container providing nginx with lua and certbot for Let's Encrypt SSL certificates
Launch nginx using the default config:
docker run --name nginx-certbot \
--restart=always \
--net=host \
-v /data/nginx/conf.d:/etc/nginx/conf.d:rw \
-v /data/letsencrypt:/etc/letsencrypt:rw \
-p 80:80 -p 443:443 -d \
really/nginx-certbot
Easily add SSL security to your nginx hosts with certbot.
docker exec -it nginx-certbot /bin/sh
will bring up a prompt at which time you can certbot
to your hearts content.
or
docker exec -it nginx-certbot certbot --no-redirect --must-staple -d example.com
It even auto-renew's for you every day!