Docker Image with nginx & certbot
881
# Add --staging to all command in order test all the process without reaching api limit of Let's encrypt
# Run the container
docker run -p 80:80 --name='nginx-letsencypt-proxy' nightech/nginx-letsencrypt proxy
# Cert generation
docker exec nginx-letsencypt certbot certonly -n --webroot --staging -d {DOMAIN} -d {SUBDOMAIN} -m {EMAIL}
# DNS challenge
docker exec -ti nginx-letsencypt certbot certonly --manual --preferred-challenges=dns-01 -d {DOMAIN} -d {SUBDOMAIN} -m {EMAIL}
# Cert renew (not working with dns challenge, used certonly command
docker exec nginx-letsencypt certbot renew
# Crontab example
docker exec nginx-letsencypt certbot renew && docker exec {NGINX-CONTAINER} nginx -s reload
Content type
Image
Digest
Size
57.5 MB
Last updated
over 7 years ago
docker pull nightech/nginx-letsencrypt-proxy