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"