diff --git a/deployer/Dockerfile b/deployer/Dockerfile index bda16d3..a7ffd25 100644 --- a/deployer/Dockerfile +++ b/deployer/Dockerfile @@ -1,7 +1,7 @@ FROM python:3.12-slim RUN apt-get update && apt-get install -y --no-install-recommends \ - git rsync ca-certificates curl \ + git rsync ca-certificates curl util-linux \ docker.io \ && rm -rf /var/lib/apt/lists/* diff --git a/scripts/deploy.sh b/scripts/deploy.sh index a12ffea..456f6a5 100644 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -60,8 +60,8 @@ echo "Waiting for services to start..." sleep 5 HEALTH_OK=true -for endpoint in "http://backend:8000/health" "http://stock-lab:8000/health" "http://travel-proxy:8000/health" "http://music-lab:8000/health"; do - if ! curl -sf --max-time 5 "$endpoint" > /dev/null 2>&1; then +for endpoint in "http://localhost:18000/health" "http://localhost:18500/health" "http://localhost:19000/health" "http://localhost:18600/health"; do + if ! curl -sf --max-time 10 --retry 2 --retry-delay 3 "$endpoint" > /dev/null 2>&1; then echo "HEALTH_FAIL: $endpoint" HEALTH_OK=false fi