Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/#097 베포 및 테스트용 MongoDB 구축 #103

Merged
merged 10 commits into from
Nov 13, 2024
7 changes: 3 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@ jobs:
uses: actions/checkout@v4

# 2. Docker Compose로 서비스 빌드 및 재시작
- name: Set up Docker
uses: docker/setup-buildx-action@v3

- name: Build and Deploy Docker Images
env:
NODE_ENV: production
MONGODB_URI: ${{ secrets.MONGODB_URI }}
run: |
# docker-compose로 배포
docker-compose up -d --build

# 3. Clean up Old Images
Expand Down
1 change: 1 addition & 0 deletions docker-compose.debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ services:
- "3000:3000" # NestJS 개발 서버 포트
- "9229:9229" # Node.js 디버깅 포트
environment:
- MONGODB_URI=mongodb://localhost:27017/boost
- NODE_ENV=development

nginx:
Expand Down
5 changes: 3 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
volumes:
- ./client/dist:/app/client/dist
environment:
- NODE_ENV=production
- NODE_ENV=${NODE_ENV}
command: pnpm --filter client run build

backend:
Expand All @@ -16,7 +16,8 @@ services:
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- MONGODB_URI=${MONGODB_URI}
- NODE_ENV=${NODE_ENV}

nginx:
build:
Expand Down
Loading
Loading