feat(Traefik): Add variable to configure traefik router name
This commit is contained in:
parent
b40f9ddde2
commit
185dc32625
|
@ -38,12 +38,12 @@ services:
|
||||||
- --providers.docker.exposedbydefault=false
|
- --providers.docker.exposedbydefault=false
|
||||||
- --providers.docker.network=${TRAEFIK_NETWORK_NAME:-traefik}
|
- --providers.docker.network=${TRAEFIK_NETWORK_NAME:-traefik}
|
||||||
|
|
||||||
- --entryPoints.traefik.address=:8080
|
- --entryPoints.${TRAEFIK_ROUTER_NAME:-traefik}.address=:8080
|
||||||
|
|
||||||
- --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_ROUTER_NAME:-traefik}.rule=Host(`${TRAEFIK_DOMAIN:?err}`)
|
||||||
- traefik.http.routers.traefik.entrypoints=web
|
- traefik.http.routers.${TRAEFIK_ROUTER_NAME:-traefik}.entrypoints=web
|
||||||
- traefik.http.services.traefik.loadbalancer.server.port=8080
|
- traefik.http.services.${TRAEFIK_ROUTER_NAME:-traefik}.loadbalancer.server.port=8080
|
||||||
|
|
Loading…
Reference in New Issue