From 8aa090312fee8502ffb14ea77b11dcf9ef07134d Mon Sep 17 00:00:00 2001 From: Minhyung Cho Date: Thu, 25 Sep 2025 20:14:14 +0900 Subject: [PATCH 1/2] =?UTF-8?q?feat=20:=20CD=20=EA=B3=BC=EC=A0=95=EC=97=90?= =?UTF-8?q?=EC=84=9C=20docker=20=EA=B6=8C=ED=95=9C=20=EA=B4=80=EB=A0=A8=20?= =?UTF-8?q?=EC=BB=A4=EB=A7=A8=EB=93=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-nest-dev.yml | 2 ++ .github/workflows/deploy-nest-prod.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/deploy-nest-dev.yml b/.github/workflows/deploy-nest-dev.yml index 59bcaa6a..dce53aba 100644 --- a/.github/workflows/deploy-nest-dev.yml +++ b/.github/workflows/deploy-nest-dev.yml @@ -26,6 +26,8 @@ jobs: REDIS_HOST_DEV: ${{ secrets.REDIS_HOST_DEV }} run: | + cd /home/ubuntu + sudo chmod 666 /var/run/docker.sock yarn types:build docker system prune -f docker compose -f ./compose.server.dev.yaml down || true diff --git a/.github/workflows/deploy-nest-prod.yml b/.github/workflows/deploy-nest-prod.yml index b709def4..356f215f 100644 --- a/.github/workflows/deploy-nest-prod.yml +++ b/.github/workflows/deploy-nest-prod.yml @@ -26,6 +26,8 @@ jobs: REDIS_HOST_PROD: ${{ secrets.REDIS_HOST_PROD }} run: | + cd /home/ubuntu + sudo chmod 666 /var/run/docker.sock yarn types:build docker system prune -f docker compose -f ./compose.server.prod.yaml down || true From 86f8d1ecb03442a8fd7dff4deaf8a280311e99e6 Mon Sep 17 00:00:00 2001 From: Minhyung Cho Date: Thu, 25 Sep 2025 21:17:42 +0900 Subject: [PATCH 2/2] =?UTF-8?q?fix=20:=20=EC=BB=A8=ED=85=8C=EC=9D=B4?= =?UTF-8?q?=EB=84=88=EB=AA=85=20=EB=B0=8F=20=ED=99=98=EA=B2=BD=EB=B3=80?= =?UTF-8?q?=EC=88=98=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- compose.server.prod.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/compose.server.prod.yaml b/compose.server.prod.yaml index cd6c61a7..948e09c9 100644 --- a/compose.server.prod.yaml +++ b/compose.server.prod.yaml @@ -3,13 +3,13 @@ services: build: context: . dockerfile: ./apps/kokomen-server/Dockerfile - container_name: kokomen-nest-server-dev + container_name: kokomen-nest-server-prod ports: - "3000:3000" - "3001:3001" environment: TZ: Asia/Seoul - NODE_ENV: development + NODE_ENV: production DATABASE_HOST: ${DATABASE_HOST_PROD} DATABASE_PORT: 3306 DATABASE_USERNAME: ${DATABASE_USERNAME_PROD} @@ -23,14 +23,14 @@ services: nginx: image: nginx:alpine - container_name: kokomen-nest-nginx-dev + container_name: kokomen-nest-nginx-prod ports: - "80:80" - "443:443" volumes: - ./apps/kokomen-server/nginx/prod/nginx.conf:/etc/nginx/nginx.conf:ro depends_on: - - kokomen-nest-server-dev + - kokomen-nest-server-prod restart: unless-stopped environment: TZ: Asia/Seoul