Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/deploy-nest-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/deploy-nest-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions compose.server.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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
Loading