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: