deployer: flock용 util-linux 추가, 헬스체크 URL localhost 포트로 수정
- Dockerfile: util-linux 패키지 추가 (flock 명령어 제공) - deploy.sh: 헬스체크 URL을 Docker 서비스명 → localhost 호스트 포트로 변경 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user