Update label syntax and add ROUTER variable

This commit is contained in:
Kris Lamoureux 2023-10-20 02:04:41 -04:00
parent 646c884639
commit 398eb48d31
Signed by: kris
GPG Key ID: 3EDA9C3441EDA925

View File

@ -28,12 +28,12 @@ services:
- "${WEBSECURE_PORT:-0.0.0.0:443:443}"
- "${LOCAL_PORT:-127.0.0.1:8443:8443}"
labels:
traefik.http.routers.traefik.rule: Host(`${DOMAIN:-traefik.local.krislamo.org}`)
traefik.http.routers.traefik.service: api@internal
traefik.http.routers.traefik.entrypoints: ${ENTRYPOINT:-local}
traefik.http.routers.traefik.tls: true
traefik.docker.network: ${NETWORK:-traefik}
traefik.enable: ${ENABLE:-false}
- "traefik.http.routers.${ROUTER:-traefik}.rule=Host(`${DOMAIN:-traefik.local.krislamo.org}`)"
- "traefik.http.routers.${ROUTER:-traefik}.service=api@internal"
- "traefik.http.routers.${ROUTER:-traefik}.entrypoints=${ENTRYPOINT:-local}"
- "traefik.http.routers.${ROUTER:-traefik}.tls=true"
- "traefik.docker.network=${NETWORK:-traefik}"
- "traefik.enable=${ENABLE:-false}"
networks:
- traefik
volumes: