tf/modules/swarm/traefik/cfg/traefik.yaml

42 lines
683 B
YAML

---
providers:
docker:
endpoint: "unix:///var/run/docker.sock"
exposedByDefault: false
swarmMode: true
network: "traefik"
file:
directory: "/etc/traefik/dynamic"
watch: true
entryPoints:
http:
address: ":80"
http:
redirections:
entryPoint:
to: https
scheme: https
https:
address: ":443"
metrics:
address: ":8081"
mqtt:
address: ":8883"
api:
dashboard: true
certificatesResolvers:
default:
acme:
email: post@chaoswest.tv
storage: /acme/acme.json
dnsChallenge:
provider: hetzner
delayBeforeCheck: "60"
metrics:
prometheus:
entryPoint: metrics