Skip to content

Commit

Permalink
refactor: compose.prod.yml build를 override 파일로 분리
Browse files Browse the repository at this point in the history
  • Loading branch information
ezcolin2 committed Jan 15, 2025
1 parent 08b8ca5 commit e431423
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 11 deletions.
20 changes: 20 additions & 0 deletions compose.prod.override.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: "3.8"

services:
nginx:
build:
context: .
dockerfile: ./services/nginx/Dockerfile.prod
image: octodocs-nginx

backend:
build:
context: .
dockerfile: ./services/backend/Dockerfile.prod
image: octodocs-backend:latest

websocket:
build:
context: .
dockerfile: ./services/websocket/Dockerfile.prod
image: octodocs-websocket:latest
13 changes: 2 additions & 11 deletions compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ version: "3.8"

services:
nginx:
build:
context: .
dockerfile: ./services/nginx/Dockerfile.prod
image: octodocs-nginx
restart: always
ports:
Expand All @@ -22,10 +19,7 @@ services:
condition: service_healthy

backend:
build:
context: .
dockerfile: ./services/backend/Dockerfile.prod
image: backend:latest
image: octodocs-backend:latest
expose:
- "3000"
networks:
Expand All @@ -51,10 +45,7 @@ services:
restart: always

websocket:
build:
context: .
dockerfile: ./services/websocket/Dockerfile.prod
image: websocket:latest
image: octodocs-websocket:latest
expose:
- "4242"
networks:
Expand Down

0 comments on commit e431423

Please sign in to comment.