Skip to content

Commit 6fde5f2

Browse files
fix(docker): pin app-server Traefik routing to shared-network (#1006)
1 parent caf1d2c commit 6fde5f2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

docker/compose.app.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ services:
142142
- shared-network
143143
labels:
144144
- "traefik.enable=true"
145+
# Pin Traefik to shared-network: the app-server temporarily joins agent sandbox
146+
# networks (agent-net-*) during review jobs. Without this label, Traefik can pick
147+
# the sandbox network IP and route requests to an unreachable internal network.
148+
- "traefik.docker.network=shared-network"
145149
- "traefik.http.middlewares.https-application-server-stripprefix.stripprefix.prefixes=/api"
146150
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
147151
- "traefik.http.routers.http-application-server.entryPoints=http"
@@ -152,6 +156,8 @@ services:
152156
- "traefik.http.routers.https-application-server.rule=Host(`${APP_HOSTNAME}`) && PathPrefix(`/api`)"
153157
- "traefik.http.routers.https-application-server.tls.certresolver=letsencrypt"
154158
- "traefik.http.routers.https-application-server.tls=true"
159+
- "traefik.http.services.http-application-server.loadbalancer.server.port=8080"
160+
- "traefik.http.services.https-application-server.loadbalancer.server.port=8080"
155161
- "traefik.http.routers.http-application-server.priority=5"
156162
- "traefik.http.routers.https-application-server.priority=10"
157163
healthcheck:

0 commit comments

Comments
 (0)