Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,17 @@ jobs:
# 6. app만 교체 (nginx/certbot은 그대로 유지 — 무중단 가까움)
sudo docker compose -f "$COMPOSE" up -d --no-deps app

# 7. 헬스체크 (Docker healthcheck 상태 polling, 최대 180초)
# OTel Agent + JPA 16개 repo + Tomcat 등으로 부팅에 약 90초 소요됨
# 7. 헬스체크 (Docker healthcheck 상태 polling, 최대 300초)
# OTel Agent + JPA repo + Tomcat 등으로 부팅에 약 90~120초 소요. 콜드/지연 대비 여유 확보.
echo "Waiting for app to become healthy..."
for i in $(seq 1 36); do
for i in $(seq 1 60); do
STATUS=$(sudo docker inspect --format='{{.State.Health.Status}}' catchtable-app 2>/dev/null || echo "starting")
if [ "$STATUS" = "healthy" ]; then
echo "✅ App is healthy"
sudo docker image prune -f
exit 0
fi
echo " ($i/36) status=$STATUS"
echo " ($i/60) status=$STATUS"
sleep 5
done

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ services:
interval: 30s
timeout: 3s
retries: 3
start_period: 60s
start_period: 120s
restart: unless-stopped
networks:
- catchtable-net
Expand Down
Loading
Loading