NGINX-LE - Nginx web and proxy with automatic let's encrypt
100K+
Simple nginx image (alpine based) with integrated Let's Encrypt support.
TZ=UTC. For more timezone values check /usr/share/zoneinfo directoryLETSENCRYPT=true if you want automatic certificate install and renewalLE_EMAIL should be your email and LE_FQDN for domainLE_FQDN=aaa.example.com,bbb.example.comLETSENCRYPT to false and pass your own cert in SSL_CERT, key in SSL_KEY and SSL_CHAIN_CERTetc/service-example.conf to make your own etc/service.conf. Keep ssl directives as is:
ssl_certificate SSL_CERT;
ssl_certificate_key SSL_KEY;
ssl_trusted_certificate SSL_CHAIN_CERT;
volumes in docker-compose.yml changed to your service configservice*.conf (see docker-compose.yml for service2.conf)docker-compose pulldocker-compose build will do itdocker-compose upImportant: provided nginx.conf handles
http->https redirect automatically, no need to add it into your custom servcie.conf. In case if you need a custom server on
http (:80) port, make sure you handle /.well-known/
path needed for LE challenge.
certbot package.script/entrypoint.sh requests LE certificate and will refresh every 10 days in case if certificate is close to expiration (30day)script/le.sh gets SSL
nginx-le container.Content type
Image
Digest
sha256:c1bd78aec…
Size
47.1 MB
Last updated
4 months ago
docker pull umputun/nginx-le