Skip to content

Commit

Permalink
Merge pull request #98 from boostcampwm-2024/dev-back
Browse files Browse the repository at this point in the history
Dev back
  • Loading branch information
EnvyW6567 authored Nov 15, 2024
2 parents 6ccdef7 + ba0f98c commit 9b2c989
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions backend/proxy-server/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
version: '3'
services:
server-blue:
image: ghcr.io/boostcampwm-2024/web35-watchducks/backend/proxy-server:latest
container_name: app-server-blue-1
environment:
- NODE_ENV=production
- PORT=3001
restart: always
volumes:
- ./.env:/usr/src/app/.env
network_mode: "host"
healthcheck:
test: [ "CMD", "nc", "-z", "localhost", "3001" ]
interval: 10s
timeout: 2s
retries: 5

server-green:
image: ghcr.io/boostcampwm-2024/web35-watchducks/backend/proxy-server:latest
container_name: app-server-green-1
environment:
- NODE_ENV=production
- PORT=3002
restart: always
volumes:
- ./.env:/usr/src/app/.env
network_mode: "host"
healthcheck:
test: [ "CMD", "nc", "-z", "localhost", "3002" ]
interval: 10s
timeout: 2s
retries: 5

0 comments on commit 9b2c989

Please sign in to comment.