fix: start containers sequentially and fix nginx startup config
All checks were successful
Deploy to OCIWP / deploy (push) Successful in 3m20s
All checks were successful
Deploy to OCIWP / deploy (push) Successful in 3m20s
This commit is contained in:
@@ -54,12 +54,15 @@ jobs:
|
||||
ACTIVE_PROFILE=dev docker compose build tool-other-$TARGET
|
||||
ACTIVE_PROFILE=dev docker compose build tool-payment-$TARGET
|
||||
|
||||
ACTIVE_PROFILE=dev docker compose up -d \
|
||||
gateway-$TARGET \
|
||||
tool-sms-$TARGET \
|
||||
tool-email-$TARGET \
|
||||
tool-other-$TARGET \
|
||||
tool-payment-$TARGET
|
||||
ACTIVE_PROFILE=dev docker compose up -d gateway-$TARGET
|
||||
sleep 5
|
||||
ACTIVE_PROFILE=dev docker compose up -d tool-sms-$TARGET
|
||||
sleep 5
|
||||
ACTIVE_PROFILE=dev docker compose up -d tool-email-$TARGET
|
||||
sleep 5
|
||||
ACTIVE_PROFILE=dev docker compose up -d tool-other-$TARGET
|
||||
sleep 5
|
||||
ACTIVE_PROFILE=dev docker compose up -d tool-payment-$TARGET
|
||||
|
||||
# 4.5. 레거시 컨테이너 청소 (포트 충돌 방지, Nginx 제외)
|
||||
echo "Finding and killing legacy containers holding our ports..."
|
||||
@@ -76,14 +79,12 @@ jobs:
|
||||
|
||||
# 4.6. Nginx 초기 설정 및 기동
|
||||
mkdir -p ./nginx/conf.d
|
||||
if [ ! -f "./nginx/conf.d/default.conf" ]; then
|
||||
echo "Initializing Nginx config to $TARGET..."
|
||||
cp ./nginx/${TARGET}.conf ./nginx/conf.d/default.conf
|
||||
fi
|
||||
echo "Initializing Nginx config to $TARGET..."
|
||||
cp ./nginx/${TARGET}.conf ./nginx/conf.d/default.conf
|
||||
ACTIVE_PROFILE=dev docker compose up -d nginx
|
||||
|
||||
# 5. 헬스 체크 대기 (Spring Boot 기동 시간 확보)
|
||||
echo "Waiting 30 seconds for Spring Boot to start..."
|
||||
# 5. Health Check (새 버전이 정상적으로 떴는지 확인)
|
||||
echo "Waiting 30 seconds for services to fully start..."
|
||||
sleep 30
|
||||
|
||||
# 신규 컨테이너가 죽지 않고 살아있는지 확인
|
||||
|
||||
Reference in New Issue
Block a user