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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user