traefik local

This commit is contained in:
Yax 2021-11-01 20:26:33 +01:00
parent 4c2bdef32e
commit 4e29e82851
20 changed files with 119 additions and 74 deletions

20
traefik/traefik.yml Normal file
View file

@ -0,0 +1,20 @@
logLevel: INFO
api:
insecure: true
dashboard: true
entryPoints:
http:
address: ":80"
https:
address: ":443"
providers:
file:
filename: /etc/traefik/tls.yml
docker:
endpoint: unix:///var/run/docker.sock
watch: true
exposedByDefault: true
defaultRule: "HostRegexp(`{{ index .Labels \"com.docker.compose.service\"}}.traefik.me`,`{{ index .Labels \"com.docker.compose.service\"}}-{dashed-ip:.*}.traefik.me`)"