feat(Traefik): Add variable to configure traefik router name

This commit is contained in:
Simon 2021-11-24 16:30:03 +01:00
parent b40f9ddde2
commit 185dc32625
1 changed files with 4 additions and 4 deletions

View File

@ -38,12 +38,12 @@ services:
- --providers.docker.exposedbydefault=false
- --providers.docker.network=${TRAEFIK_NETWORK_NAME:-traefik}
- --entryPoints.traefik.address=:8080
- --entryPoints.${TRAEFIK_ROUTER_NAME:-traefik}.address=:8080
- --entrypoints.web.address=:80
- --entryPoints.web.forwardedHeaders.insecure
labels:
- traefik.enable=true
- traefik.http.routers.traefik.rule=Host(`${TRAEFIK_DOMAIN:?err}`)
- traefik.http.routers.traefik.entrypoints=web
- traefik.http.services.traefik.loadbalancer.server.port=8080
- traefik.http.routers.${TRAEFIK_ROUTER_NAME:-traefik}.rule=Host(`${TRAEFIK_DOMAIN:?err}`)
- traefik.http.routers.${TRAEFIK_ROUTER_NAME:-traefik}.entrypoints=web
- traefik.http.services.${TRAEFIK_ROUTER_NAME:-traefik}.loadbalancer.server.port=8080