Skip to content

Commit

Permalink
feat: blue, green 서버 다른 포트 사용
Browse files Browse the repository at this point in the history
  • Loading branch information
sjy2335 committed Nov 13, 2024
1 parent e7bb234 commit 5027481
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions backend/console-server/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ services:
image: ghcr.io/boostcampwm-2024/web35-watchducks/backend/console-server:latest
environment:
- NODE_ENV=production
- PORT=3000
- PORT=3001
restart: always
volumes:
- ./.env:/usr/src/app/.env
Expand All @@ -23,7 +23,7 @@ services:
image: ghcr.io/boostcampwm-2024/web35-watchducks/backend/console-server:latest
environment:
- NODE_ENV=production
- PORT=3000
- PORT=3002
restart: always
volumes:
- ./.env:/usr/src/app/.env
4 changes: 2 additions & 2 deletions backend/console-server/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
http {
upstream console_server {
server server-blue:3000 weight=1;
server server-green:3000 backup;
server server-blue:3001 weight=1;
server server-green:3002 backup;
}

server {
Expand Down

0 comments on commit 5027481

Please sign in to comment.