Skip to content

Commit

Permalink
Merge pull request #103 from boostcampwm-2024/Feature/#097_Github_Sec…
Browse files Browse the repository at this point in the history
…rets_환경_변수_설정

Feature/#97 베포 및 테스트용 MongoDB 구축
  • Loading branch information
github-actions[bot] authored Nov 13, 2024
2 parents 38a012a + f098ccd commit 5bed8b7
Show file tree
Hide file tree
Showing 7 changed files with 6,525 additions and 3,153 deletions.
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

0 comments on commit 5bed8b7

Please sign in to comment.