From 13f002b25b1ba3f80ed578f4ab090b9192553e0f Mon Sep 17 00:00:00 2001 From: Lectom C Han Date: Wed, 11 Feb 2026 09:42:58 +0900 Subject: [PATCH] =?UTF-8?q?.env=20=EC=B0=B8=EC=A1=B0=20=EA=B2=BD=EB=A1=9C?= =?UTF-8?q?=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/staging_code_pull.yml | 8 +++++--- docker/staging_pull_compose.template.yaml | 8 ++++---- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/staging_code_pull.yml b/.gitea/workflows/staging_code_pull.yml index 52035a8b..f2534017 100644 --- a/.gitea/workflows/staging_code_pull.yml +++ b/.gitea/workflows/staging_code_pull.yml @@ -150,12 +150,14 @@ jobs: # [중요] 설정 파일 권한 문제 해결 (Ory 이미지는 root가 아닌 사용자로 실행됨) chmod -R 777 docker/ory - docker compose -f docker/staging_pull_compose.template.yaml pull + cp docker/staging_pull_compose.template.yaml staging_pull_compose.yaml + + docker compose -f staging_pull_compose.yaml pull # [주의] DB 초기화 스크립트는 '새로운 볼륨'에서만 실행됨. - docker compose -f docker/staging_pull_compose.template.yaml down || true + docker compose -f staging_pull_compose.yaml down || true - docker compose -f docker/staging_pull_compose.template.yaml up -d --remove-orphans + docker compose -f staging_pull_compose.yaml up -d --remove-orphans # 배포 후 상태 확인 (실패 시 로그 출력을 위함) sleep 10 diff --git a/docker/staging_pull_compose.template.yaml b/docker/staging_pull_compose.template.yaml index e2cf33f0..911a129b 100644 --- a/docker/staging_pull_compose.template.yaml +++ b/docker/staging_pull_compose.template.yaml @@ -186,7 +186,7 @@ services: dockerfile: Dockerfile container_name: baron_backend env_file: - - ../.env + - .env environment: - APP_ENV=${APP_ENV:-development} - GO_ENV=${APP_ENV:-development} @@ -230,7 +230,7 @@ services: dockerfile: Dockerfile container_name: baron_adminfront env_file: - - ../.env + - .env environment: - APP_ENV=${APP_ENV:-development} - API_PROXY_TARGET=http://baron_backend:3000 @@ -248,7 +248,7 @@ services: dockerfile: Dockerfile container_name: baron_devfront env_file: - - ../.env + - .env environment: - APP_ENV=${APP_ENV:-development} - API_PROXY_TARGET=http://baron_backend:3000 @@ -266,7 +266,7 @@ services: dockerfile: Dockerfile container_name: baron_userfront env_file: - - ../.env + - .env environment: - BACKEND_URL=${BACKEND_URL} - USERFRONT_URL=${USERFRONT_URL}