From b50efddec48cdbe70fcdabf2fb2e234cb02ef110 Mon Sep 17 00:00:00 2001 From: hhko Date: Sat, 28 Dec 2024 07:54:56 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=84=A4=EB=AA=85=20=EC=88=9C=EC=84=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 --- README.md | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index f361dd1..70563ea 100644 --- a/README.md +++ b/README.md @@ -1137,11 +1137,15 @@ networks: ``` ## Ch 16.3 Docker Compose 전용 디버깅 환경 변수 +```yml +services: + crop.hello.api: + environment: + - DOTNET_ENVIRONMENT=Docker + volumes: + - ./.logs/crop.hello.api:/app/logs ``` -docker-compose.override.yml - -> DOTNET_ENVIRONMENT=Docker - -> appsettings.Docker.json -``` +- docker-compose.override.yml 파일 - 콘솔과 Docker Compose의 설정이 다를 경우, Visual Studio에서 디버깅 목적으로 사용하는 docker-compose.override.yml 파일을 활용하여 DOTNET_ENVIRONMENT 값을 설정할 수 있습니다. 이를 통해 appsettings.Docker.json에 Docker Compose 전용 설정을 지 ```json @@ -1156,16 +1160,6 @@ docker-compose.override.yml - 컨테이너일 때(도커 컴포즈): host.docker.internal - 호스트일 때(콘솔): 127.0.0.1 -```yml -services: - crop.hello.api: - environment: - - DOTNET_ENVIRONMENT=Docker - volumes: - - ./.logs/crop.hello.api:/app/logs -``` -- docker-compose.override.yml 파일 -
---