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:
traefik:
image: traefik:${TRAEFIK_VERSION}
@ -11,7 +13,7 @@ services:
- --api.dashboard=true
# configure Let's Encrypt automatic certificates
- --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.keytype=RSA4096
- --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
- --providers.file.directory=/config
- --providers.file.watch=true
env_file:
- ${TRAEFIK_DNSPROVIDER_ENVFILE}
environment:
- HETZNER_API_KEY=${HETZNER_API_KEY}
labels:
# expose Træfik using Træfik (dashboard)
- traefik.enable=${TRAEFIK_ENABLED}

View File

@ -1 +0,0 @@
HETZNER_API_KEY=

View File

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