forked from baron/baron-sso
healthcheck 시간 추가
This commit is contained in:
@@ -108,7 +108,11 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "4455:4455" # Proxy
|
- "4455:4455" # Proxy
|
||||||
- "4456:4456" # API (Backend 헬스체크용)
|
- "4456:4456" # API (Backend 헬스체크용)
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:4456/health/ready"]
|
||||||
|
interval: 5s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
volumes:
|
volumes:
|
||||||
ory_postgres_data:
|
ory_postgres_data:
|
||||||
|
|
||||||
|
|||||||
@@ -23,6 +23,8 @@ services:
|
|||||||
- HYDRA_ADMIN_URL="${HYDRA_ADMIN_URL:-http://ory_hydra:4445}"
|
- HYDRA_ADMIN_URL="${HYDRA_ADMIN_URL:-http://ory_hydra:4445}"
|
||||||
- HYDRA_PUBLIC_URL="${HYDRA_PUBLIC_URL:-http://ory_hydra:4444}"
|
- HYDRA_PUBLIC_URL="${HYDRA_PUBLIC_URL:-http://ory_hydra:4444}"
|
||||||
- PROFILE_CACHE_TTL="${PROFILE_CACHE_TTL:-30m}"
|
- PROFILE_CACHE_TTL="${PROFILE_CACHE_TTL:-30m}"
|
||||||
|
# Oathkeeper URL이 필요하다면 명시 (일반적으로 내부 DNS 사용시 불필요하나 확실히 하기 위해)
|
||||||
|
- OATHKEEPER_API_URL=http://ory_oathkeeper:4456
|
||||||
ports:
|
ports:
|
||||||
- "${BACKEND_PORT:-3000}:3000"
|
- "${BACKEND_PORT:-3000}:3000"
|
||||||
depends_on:
|
depends_on:
|
||||||
@@ -31,12 +33,14 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- baron_net
|
- baron_net
|
||||||
- ory-net
|
- ory-net
|
||||||
|
|
||||||
|
# [수정됨] Healthcheck 시간을 넉넉하게 늘림
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:3000/health"]
|
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:3000/health"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 10 # 3회 -> 10회 (최대 10번 재시도)
|
||||||
start_period: 10s
|
start_period: 60s # 10초 -> 60초 (처음 1분간은 실패해도 봐줌)
|
||||||
|
|
||||||
adminfront:
|
adminfront:
|
||||||
image: ${ADMINFRONT_IMAGE_NAME}:${IMAGE_TAG}
|
image: ${ADMINFRONT_IMAGE_NAME}:${IMAGE_TAG}
|
||||||
@@ -89,12 +93,13 @@ services:
|
|||||||
echo \"APP_ENV=stage\" >> /usr/share/nginx/html/assets/.env &&
|
echo \"APP_ENV=stage\" >> /usr/share/nginx/html/assets/.env &&
|
||||||
cp /usr/share/nginx/html/assets/.env /usr/share/nginx/html/.env &&
|
cp /usr/share/nginx/html/assets/.env /usr/share/nginx/html/.env &&
|
||||||
nginx -g 'daemon off;'"
|
nginx -g 'daemon off;'"
|
||||||
|
# [수정됨] Userfront도 넉넉하게 설정
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:5000/"]
|
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:5000/"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 3
|
retries: 5
|
||||||
start_period: 10s
|
start_period: 30s
|
||||||
|
|
||||||
infra_check:
|
infra_check:
|
||||||
image: alpine
|
image: alpine
|
||||||
|
|||||||
Reference in New Issue
Block a user