A simple debian based nginx with certbot
and python-certbot-nginx
installed.
docker pull amritb/nginx-certbot-warm
With correct volume mounts, a script like this is enough to create and renew certs automatically:
#!/bin/bash
set -e
set -x
nginx
certbot --nginx -n --agree-tos --email <email> --domains <dom,ains,>
nginx -s quit