Files
docker-traefik/config/traefik.yml
2025-02-27 19:08:40 +01:00

67 lines
1.5 KiB
YAML

################################################################
# Global configuration
################################################################
global:
checkNewVersion: true
sendAnonymousUsage: true
################################################################
# EntryPoints configuration
################################################################
entryPoints:
web:
address: :80
http:
redirections:
entryPoint:
to: "websecure"
scheme: "https"
websecure:
address: :443
http3: {}
################################################################
# API and dashboard configuration
################################################################
api:
insecure: true
dashboard: true
################################################################
# Docker configuration backend
################################################################
providers:
docker:
endpoint: "unix:///var/run/docker.sock"
exposedByDefault: false
network: "traefik_public"
file:
filename: "/etc/traefik/dynamic.yml"
watch: true
providersThrottleDuration: 10
certificatesResolvers:
tls-resolver:
acme:
email: mail@example.com
storage: "/etc/traefik/acme/acme.json"
tlsChallenge: {}
################################################################
# Logging
################################################################
metrics:
prometheus:
buckets:
- 0.1
- 0.3
- 1.2
- 5.0
addRoutersLabels: true