🔧 fix(mac-mini): add container recovery and update health check ports

- Add ensure-containers-running.sh to detect and auto-start stuck containers
- Add LaunchD plist for automatic container health checks every 5 minutes
- Update health-check.sh with correct ports (3031/5011 for todo, etc.)
- Update deploy.sh health checks to match docker-compose.macmini.yml
- Fix container name references (mana-infra-postgres instead of manacore-postgres)

This prevents 502 errors when containers get stuck in "Created" status.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Till-JS 2026-02-12 12:51:49 +01:00
parent 03c9267a69
commit 2fe7f842c6
4 changed files with 261 additions and 33 deletions

View file

@ -92,16 +92,18 @@ check_health() {
fi
}
check_health "Auth API" "http://localhost:3001/api/v1/health"
check_health "ManaCore Web" "http://localhost:5173/health"
check_health "Chat Backend" "http://localhost:3002/api/v1/health"
check_health "Chat Web" "http://localhost:3000/health"
check_health "Todo Backend" "http://localhost:3018/api/health"
check_health "Todo Web" "http://localhost:5188/health"
check_health "Calendar Backend" "http://localhost:3016/api/v1/health"
check_health "Calendar Web" "http://localhost:5186/health"
check_health "Clock Backend" "http://localhost:3017/api/v1/health"
check_health "Clock Web" "http://localhost:5187/health"
check_health "Auth API" "http://localhost:3001/health"
check_health "ManaCore Web" "http://localhost:5000/health"
check_health "Chat Backend" "http://localhost:3030/health"
check_health "Chat Web" "http://localhost:5010/health"
check_health "Todo Backend" "http://localhost:3031/health"
check_health "Todo Web" "http://localhost:5011/health"
check_health "Calendar Backend" "http://localhost:3032/health"
check_health "Calendar Web" "http://localhost:5012/health"
check_health "Clock Backend" "http://localhost:3033/health"
check_health "Clock Web" "http://localhost:5013/health"
check_health "Contacts Backend" "http://localhost:3034/health"
check_health "Contacts Web" "http://localhost:5014/health"
echo ""
echo "=== Deployment Complete ==="