Keep Caddy on pinscope_periscope after compose rename.

Pin the app bridge to the pre-rename network name and add DNS aliases
pinscope / periscope-frontend so the host proxy can reach the stack again.
This commit is contained in:
2026-09-20 00:35:12 +02:00
parent 6b0e44a50c
commit ddab6917a3
3 changed files with 29 additions and 4 deletions
+16
View File
@@ -184,5 +184,21 @@ if [[ "$ok" -ne 1 ]]; then
exit 1
fi
log "Waiting for frontend :3000"
ok=0
for _ in $(seq 1 30); do
if curl -fsS -o /dev/null "http://127.0.0.1:3000/" ; then
ok=1
break
fi
sleep 1
done
if [[ "$ok" -ne 1 ]]; then
echo "Frontend did not become ready on :3000. Last logs:" >&2
compose logs --tail 80 frontend >&2 || true
exit 1
fi
log "Done. Site should be $SITE (nginx/Caddy still fronts :3000 / :8080)."
log "App containers are on Docker network pinscope_periscope (aliases: pinscope, periscope-frontend)."
compose ps