헬스체크 추가
This commit is contained in:
1 parent
3c41c0dc62
commit
ffe96c8c65
6 files changed
+94
-18
No files matched your search
@@ -20,6 +20,12 @@ services:
|
||||
- "${BACKEND_PORT:-3000}:3000"
|
||||
depends_on:
|
||||
- infra_check
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:3000/health"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 10s
|
||||
networks:
|
||||
- baron_net
|
||||
|
||||
@@ -30,7 +36,8 @@ services:
|
||||
ports:
|
||||
- "${FRONTEND_PORT:-80}:80"
|
||||
depends_on:
|
||||
- backend
|
||||
backend:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- baron_net
|
||||
|
||||
|
||||
Reference in new issue
Block a user