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:
2026-04-03 01:50:04 +09:00
parent 819c35adfc
commit 9ac142e1de
2 changed files with 3 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
FROM python:3.12-slim FROM python:3.12-slim
RUN apt-get update && apt-get install -y --no-install-recommends \ 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 \ docker.io \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*

View File

@@ -60,8 +60,8 @@ echo "Waiting for services to start..."
sleep 5 sleep 5
HEALTH_OK=true 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 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 5 "$endpoint" > /dev/null 2>&1; then if ! curl -sf --max-time 10 --retry 2 --retry-delay 3 "$endpoint" > /dev/null 2>&1; then
echo "HEALTH_FAIL: $endpoint" echo "HEALTH_FAIL: $endpoint"
HEALTH_OK=false HEALTH_OK=false
fi fi