refactor(Traefik): Change syntax to accept variable

This commit is contained in:
Simon 2021-11-24 16:28:03 +01:00
parent 5bf6a8630c
commit b40f9ddde2
1 changed files with 4 additions and 6 deletions

View File

@ -43,9 +43,7 @@ services:
- --entrypoints.web.address=:80 - --entrypoints.web.address=:80
- --entryPoints.web.forwardedHeaders.insecure - --entryPoints.web.forwardedHeaders.insecure
labels: labels:
traefik.enable: 'true' - traefik.enable=true
- traefik.http.routers.traefik.rule=Host(`${TRAEFIK_DOMAIN:?err}`)
traefik.http.routers.traefik.rule: 'Host(`${TRAEFIK_DOMAIN:?err}`)' - traefik.http.routers.traefik.entrypoints=web
traefik.http.routers.traefik.entrypoints: 'web' - traefik.http.services.traefik.loadbalancer.server.port=8080
traefik.http.services.traefik.loadbalancer.server.port: '8080'