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
14 changes: 3 additions & 11 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ jobs:
echo "🚀 Starting new containers..."
docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d

echo "⏳ Waiting for health check..."
sleep 10
echo "⏳ Waiting for application to start..."
sleep 30

echo "🏥 Checking application health..."
for i in {1..30}; do
Expand All @@ -115,17 +115,9 @@ jobs:
docker image prune -f
exit 0
fi

# 5초마다 로그 확인
if [ $((i % 5)) -eq 0 ]; then
echo "📋 Recent logs (attempt $i/30):"
docker compose -f docker-compose.yml -f docker-compose.dev.yml logs --tail=20 widyu-api
fi

echo "Waiting for application to be ready... ($i/30)"
sleep 2
done

echo "⚠️ Health check timeout. Full logs:"
docker compose -f docker-compose.yml -f docker-compose.dev.yml logs --tail=100 widyu-api
echo "⚠️ Health check timeout. Please check logs manually on the server."
exit 1
10 changes: 5 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,11 @@ services:
- widyu-network
depends_on:
- widyu-api
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost/actuator/health"]
interval: 30s
timeout: 10s
retries: 3
# healthcheck:
# test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost/actuator/health"]
# interval: 30s
# timeout: 10s
# retries: 3

# Certbot (필요할 때만 docker compose run으로 실행)
certbot:
Expand Down
Loading