Compare commits

..

No commits in common. "4633927204ddfd09e1450e33559d70287b019382" and "4d4a578b78c76e6bec757087be1e2e0f21b83cf8" have entirely different histories.

3 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,6 @@
--- ---
version: "3"
services: services:
traefik: traefik:
image: traefik:${TRAEFIK_VERSION} image: traefik:${TRAEFIK_VERSION}
@ -11,7 +13,7 @@ services:
- --api.dashboard=true - --api.dashboard=true
# configure Let's Encrypt automatic certificates # configure Let's Encrypt automatic certificates
- --certificatesresolvers.${TRAEFIK_CERTRESOLVER}.acme.dnschallenge=true - --certificatesresolvers.${TRAEFIK_CERTRESOLVER}.acme.dnschallenge=true
- --certificatesresolvers.${TRAEFIK_CERTRESOLVER}.acme.dnschallenge.provider=${TRAEFIK_DNSPROVIDER} - --certificatesresolvers.${TRAEFIK_CERTRESOLVER}.acme.dnschallenge.provider=hetzner
- --certificatesresolvers.${TRAEFIK_CERTRESOLVER}.acme.email=${LETSENCRYPT_EMAIL} - --certificatesresolvers.${TRAEFIK_CERTRESOLVER}.acme.email=${LETSENCRYPT_EMAIL}
- --certificatesresolvers.${TRAEFIK_CERTRESOLVER}.acme.keytype=RSA4096 - --certificatesresolvers.${TRAEFIK_CERTRESOLVER}.acme.keytype=RSA4096
- --certificatesresolvers.${TRAEFIK_CERTRESOLVER}.acme.storage=/certs.json - --certificatesresolvers.${TRAEFIK_CERTRESOLVER}.acme.storage=/certs.json
@ -30,8 +32,8 @@ services:
# should not need, but just in case, a folder for dynamic config files is also configured # should not need, but just in case, a folder for dynamic config files is also configured
- --providers.file.directory=/config - --providers.file.directory=/config
- --providers.file.watch=true - --providers.file.watch=true
env_file: environment:
- ${TRAEFIK_DNSPROVIDER_ENVFILE} - HETZNER_API_KEY=${HETZNER_API_KEY}
labels: labels:
# expose Træfik using Træfik (dashboard) # expose Træfik using Træfik (dashboard)
- traefik.enable=${TRAEFIK_ENABLED} - traefik.enable=${TRAEFIK_ENABLED}

View File

@ -1 +0,0 @@
HETZNER_API_KEY=

View File

@ -11,8 +11,7 @@ TRAEFIK_PILOT_TOKEN=
TRAEFIK_TLSENABLED=true TRAEFIK_TLSENABLED=true
# Certificate provider # Certificate provider
TRAEFIK_DNSPROVIDER=hetzner HETZNER_API_KEY=
TRAEFIK_DNSPROVIDER_ENVFILE=./.env.dnsprovider
LETSENCRYPT_EMAIL=admin@mydomain.com LETSENCRYPT_EMAIL=admin@mydomain.com
# Debugging # Debugging