From 4bab39473737a6c43a40cf0408fd62c90bfec088 Mon Sep 17 00:00:00 2001 From: scarf Date: Tue, 8 Oct 2024 21:35:17 +0900 Subject: [PATCH] =?UTF-8?q?build:=20compose=20=EB=82=B4=EC=97=90=EC=84=9C?= =?UTF-8?q?=20DB=20=EC=97=B0=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 컨테이너간에는 컨테이너명으로 DB에 접근해야 함, 참고: https://old.reddit.com/r/docker/comments/jsshgu/help_nodjs_mysql_dockercompose_connect/gc1ktqr/ --- compose-dev.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compose-dev.yml b/compose-dev.yml index 6447e92..c36a787 100644 --- a/compose-dev.yml +++ b/compose-dev.yml @@ -24,4 +24,6 @@ services: - ./backend/logs:/app/backend/logs ports: - 3000:3000 + environment: + - MYSQL_HOST=database env_file: .env