1
0
forked from baron/baron-sso

feature/i18n 코드 통합 & 인프라 검증로직 추가

This commit is contained in:
Lectom C Han
2026-02-19 14:28:48 +09:00
parent 33660cfdcf
commit dcdc69ebfe
8 changed files with 515 additions and 15 deletions

View File

@@ -10,29 +10,50 @@ endif
COMPOSE_INFRA := compose.infra.yaml
COMPOSE_ORY := compose.ory.yaml
COMPOSE_APP := docker-compose.yaml
AUTH_CONFIG_ENV := .generated/auth-config.env
COMPOSE_ENV_FILES :=
ifneq (,$(wildcard ./.env))
COMPOSE_ENV_FILES += --env-file .env
endif
COMPOSE_ENV_FILES += --env-file $(AUTH_CONFIG_ENV)
# --- 인증 설정 빌드/검증 ---
build-auth-config:
@echo "Building auth config..."
@mkdir -p .generated
@bash scripts/auth_config.sh build
validate-auth-config: build-auth-config
@echo "Validating auth config..."
@bash scripts/auth_config.sh validate
verify-auth-config: validate-auth-config
@echo "Verifying auth config wiring..."
@bash scripts/auth_config.sh verify
# --- 기본 실행 ---
# 주의: --remove-orphan 사용 금지 (다른 스택이 orphan으로 판단되어 종료될 수 있음)
up-all:
up-all: validate-auth-config
@echo "Starting ALL stacks (infra + ory + app)..."
docker compose -f $(COMPOSE_INFRA) -f $(COMPOSE_ORY) -f $(COMPOSE_APP) up -d
docker compose $(COMPOSE_ENV_FILES) -f $(COMPOSE_INFRA) -f $(COMPOSE_ORY) -f $(COMPOSE_APP) up -d
# --- 개별 스택 실행 ---
up-infra:
@echo "Starting Infra stack (postgres/clickhouse/redis)..."
docker compose -f $(COMPOSE_INFRA) up -d
up-ory:
up-ory: validate-auth-config
@echo "Starting Ory stack (kratos/hydra/keto/oathkeeper)..."
docker compose -f $(COMPOSE_ORY) up -d
docker compose $(COMPOSE_ENV_FILES) -f $(COMPOSE_ORY) up -d
up-app:
up-app: validate-auth-config
@echo "Starting App stack (backend/userfront/adminfront/devfront)..."
docker compose -f $(COMPOSE_APP) up -d
docker compose $(COMPOSE_ENV_FILES) -f $(COMPOSE_APP) up -d
up-backend:
up-backend: validate-auth-config
@echo "Starting Backend only..."
docker compose -f $(COMPOSE_APP) up -d backend
docker compose $(COMPOSE_ENV_FILES) -f $(COMPOSE_APP) up -d backend
up-dev: up-infra up-ory
@echo "Dev stack is up (infra + ory)."