From e1c862859eca92b29f5cca507c47e1a5567db32e Mon Sep 17 00:00:00 2001 From: GiHwan2 Date: Sun, 24 Nov 2024 03:51:29 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20CD=20=ED=8C=8C=EC=9D=B4=ED=94=84?= =?UTF-8?q?=EB=9D=BC=EC=9D=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/CICD.yml | 4 ++-- docker-compose.prod.yml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index 0540c1b..8c5ca40 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -51,11 +51,11 @@ jobs: steps: # 1. backend 서비스 중지 - name: Stop backend service - run: sudo docker-compose -f docker-compose.prod.yml stop backend + run: sudo docker stop Ivory-Backend # 2. backend 서비스 컨테이너 제거 - name: Remove backend container - run: sudo docker-compose -f docker-compose.prod.yml rm -f backend + run: sudo docker rm Ivory-Backend # 3. backend 이미지 제거 - name: Remove backend image diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index e2eaf37..c040dca 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -1,5 +1,6 @@ services: backend: + container_name: Ivory-Backend image: sandwich5011/ivory-backend ports: - "8080:8080"