Simple nginx image (alpine based) with integrated Let's Encrypt support.
-
get docker-compose.yml and change things
- set
LETSENCRYPT=true
if you want automatic certificate install and renewal LE_EMAIL
should be your email andLE_FQDN
for domain- alternatively set
LETSENCRYPT
tofalse
and pass your own cert and key inSSL_CERT
andSSL_KEY
- set
-
use provided
etc/service-example.conf
to make your own. Keep bothssl_certificate SSL_CERT;
andssl_certificate_key SSL_KEY;
-
pull image -
docker-compose pull
-
if you don't want pre-built image, make you own.
docker-compose build
will do it -
start it
docker-compose up
- image uses alpine's
certbot
package. script/entrypoint.sh
requests LE certificate and will refresh every 60 days.script/le.sh
gets SSL- nginx-le on docker-hub
- Caddy supports Let's Encrypt directly.
- leproxy small and nice (stand alone) https reverse proxy with automatic Letsencrypt
- bunch of others
Work in progress. It was extracted from another (working) project, but not fully tested yet as a separate thingy.