fix: increase health check timeout from 60s to 180s for slow HDD

The NAS HDD is slow enough that container startup can exceed 60
seconds. The app was starting successfully (Uvicorn running) but
the health check timed out just before the container became healthy.
Increased to 90 iterations at 2s = 180s max wait.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Gan, Jimmy
2026-05-27 16:52:49 +08:00
parent f15c61d93e
commit 685a64bb5b
+2 -2
View File
@@ -326,13 +326,13 @@ jobs:
# Wait for container to be healthy
echo "Waiting for container to be healthy..."
for i in {1..30}; do
for i in {1..90}; do
STATUS=$(docker inspect --format='{{.State.Health.Status}}' nas-dashboard 2>/dev/null || echo "starting")
if [ "$STATUS" = "healthy" ]; then
echo "✅ Container is healthy"
break
fi
echo "Waiting... ($i/30) Status: $STATUS"
echo "Waiting... ($i/90) Status: $STATUS"
sleep 2
done
STATUS=$(docker inspect --format='{{.State.Health.Status}}' nas-dashboard 2>/dev/null || echo "unknown")