From 3027f2c817ad5822cbe8d53ec5aed38920118222 Mon Sep 17 00:00:00 2001 From: dohyeons Date: Mon, 25 Aug 2025 18:26:38 +0900 Subject: [PATCH] =?UTF-8?q?=EC=8A=A4=ED=81=AC=EB=A6=BD=ED=8A=B8=20?= =?UTF-8?q?=ED=8C=8C=EC=9D=BC=EC=97=90=20=EC=BB=A8=ED=85=8C=EC=9D=B4?= =?UTF-8?q?=EB=84=88=20=EC=A0=95=EB=A6=AC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.frontend.mac.yml | 3 +-- start-all-separated.sh | 8 ++++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/docker-compose.frontend.mac.yml b/docker-compose.frontend.mac.yml index 8858cd77..280cf8a1 100644 --- a/docker-compose.frontend.mac.yml +++ b/docker-compose.frontend.mac.yml @@ -1,4 +1,4 @@ -version: '3.8' +version: "3.8" services: # Next.js 프론트엔드만 @@ -22,4 +22,3 @@ services: networks: pms-network: driver: bridge - external: true \ No newline at end of file diff --git a/start-all-separated.sh b/start-all-separated.sh index b01ef6fb..43ff66e5 100755 --- a/start-all-separated.sh +++ b/start-all-separated.sh @@ -8,6 +8,14 @@ echo "" echo "🚀 백엔드(Node.js)와 프론트엔드(Next.js)를 순차적으로 시작합니다..." echo "" +# 기존 컨테이너 강제 삭제 (이름 충돌 방지) +echo "============================================" +echo "0. 기존 컨테이너 정리 중..." +echo "============================================" +docker rm -f pms-backend-mac pms-frontend-mac 2>/dev/null || echo "기존 컨테이너가 없습니다." +docker network rm pms-network 2>/dev/null || echo "기존 네트워크가 없습니다." +echo "" + # 백엔드 먼저 시작 echo "============================================" echo "1. 백엔드 서비스 시작 중... (Node.js)"