From 398eb48d311db78b86abf783f903af4a1658d773 Mon Sep 17 00:00:00 2001 From: Kris Lamoureux Date: Fri, 20 Oct 2023 02:04:41 -0400 Subject: [PATCH] Update label syntax and add ROUTER variable --- docker-compose.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index b789bf7..2d90167 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: