fix(nginx): Docker-DNS-Resolver gegen 502 nach API-Recreate, Deploy prueft Health inhaltlich

This commit is contained in:
2026-10-04 16:43:49 +02:00
parent ca12bc9f46
commit 3386cdab25
8 changed files with 27 additions and 4 deletions
+2 -1
View File
@@ -51,7 +51,8 @@ sleep 5
"$PLINK" -batch -hostkey "$HOSTKEY" -i "$KEY" -P "$PORT" "$SERVER" "
docker ps --filter name=mp- --format 'table {{.Names}}\t{{.Status}}' &&
curl -s https://mieterportal.hocks.eu/ | grep -o 'index-[^\"]*\.js' | head -1 &&
curl -s https://mieterportal.hocks.eu/api/healthz
curl -sf https://mieterportal.hocks.eu/api/healthz | grep -q '\"datenbank\":true' &&
echo 'API erreichbar (Health OK)' || echo 'WARNUNG: API-Healthcheck fehlgeschlagen (nginx ggf. neu starten: docker restart mp-portal)'
"
echo
echo "Fertig: https://mieterportal.hocks.eu"