From b17bac0d8723d338fd90259fef5ac2fb098b5189 Mon Sep 17 00:00:00 2001 From: Tim Conrad <4759569+Tim-Conrad@users.noreply.github.com> Date: Sat, 14 Nov 2026 02:44:04 +0100 Subject: [PATCH] preview: list-form labels for the papercuts relay compose substitutes variables only in values, not in mapping keys, so every relay registered the same router name and none got routed. Use list-form labels with ${WT_PROJECT}, which wt sets. Checked: pc---t7d.review.t7d.dev/healthz answers 200 through the gateway. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01KFxuEvbkaAsJXeJAcQhGr6 --- compose.preview.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/compose.preview.yml b/compose.preview.yml index 9323565..03b33d8 100644 --- a/compose.preview.yml +++ b/compose.preview.yml @@ -53,13 +53,14 @@ services: volumes: - ${WT_MAIN}/.papercuts:/data:rw networks: [default, proxy] + # List form: compose substitutes variables only in values, not in mapping keys. labels: - traefik.enable: "true" - traefik.docker.network: "proxy" - traefik.http.routers.${COMPOSE_PROJECT_NAME}-pc.rule: "Host(`pc-${PREVIEW_HOST}`)" - traefik.http.routers.${COMPOSE_PROJECT_NAME}-pc.entrypoints: "websecure" - traefik.http.routers.${COMPOSE_PROJECT_NAME}-pc.tls: "true" - traefik.http.services.${COMPOSE_PROJECT_NAME}-pc.loadbalancer.server.port: "8000" + - "traefik.enable=true" + - "traefik.docker.network=proxy" + - "traefik.http.routers.${WT_PROJECT}-pc.rule=Host(`pc-${PREVIEW_HOST}`)" + - "traefik.http.routers.${WT_PROJECT}-pc.entrypoints=websecure" + - "traefik.http.routers.${WT_PROJECT}-pc.tls=true" + - "traefik.http.services.${WT_PROJECT}-pc.loadbalancer.server.port=8000" networks: proxy: