Join railway-caddy network pinscope_pinscope after compose up.

Caddy reverse_proxies periscope-frontend by Docker DNS and is not on
the compose project bridge; attach the app containers so HTTPS stops 502.
This commit is contained in:
2026-09-20 00:37:04 +02:00
parent ddab6917a3
commit 344ecb3389
3 changed files with 13 additions and 4 deletions
+9
View File
@@ -168,6 +168,15 @@ upsert_env NEXT_PUBLIC_AUTH_MODE "local" .env
log "docker compose up -d --build (data/ is kept)"
compose up -d --build
# Host Caddy (railway-caddy) is on pinscope_pinscope, not the compose
# project network. Join so reverse_proxy periscope-frontend:3000 resolves.
log "Attach app containers to host Caddy network(s)"
for net in pinscope_pinscope pinscope_periscope; do
docker network inspect "$net" >/dev/null 2>&1 || continue
docker network connect "$net" periscope-frontend 2>/dev/null || true
docker network connect "$net" periscope-backend 2>/dev/null || true
done
log "Waiting for backend"
ok=0
for _ in $(seq 1 30); do