1
0
forked from baron/baron-sso

헬스체크 추가

This commit is contained in:
2026-01-20 10:10:50 +09:00
parent 3c41c0dc62
commit ffe96c8c65
6 changed files with 94 additions and 18 deletions

View File

@@ -1,5 +1,3 @@
version: "3.8"
services:
backend:
build:
@@ -35,6 +33,13 @@ services:
- ./backend:/app
command: ["go", "run", "./cmd/server/main.go"]
healthcheck:
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:3000/health"]
interval: 10s
timeout: 5s
retries: 3
start_period: 10s
frontend:
build:
context: ./frontend
@@ -52,7 +57,8 @@ services:
networks:
- baron_net
depends_on:
- backend
backend:
condition: service_healthy
command: >
/bin/sh -c "mkdir -p /usr/share/nginx/html/assets &&
echo \"DESCOPE_PROJECT_ID=$${DESCOPE_PROJECT_ID}\" > /usr/share/nginx/html/assets/.env &&