Skip to content

Commit e431423

Browse files
committed
refactor: compose.prod.yml build를 override 파일로 분리
1 parent 08b8ca5 commit e431423

File tree

2 files changed

+22
-11
lines changed

2 files changed

+22
-11
lines changed

compose.prod.override.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
version: "3.8"
2+
3+
services:
4+
nginx:
5+
build:
6+
context: .
7+
dockerfile: ./services/nginx/Dockerfile.prod
8+
image: octodocs-nginx
9+
10+
backend:
11+
build:
12+
context: .
13+
dockerfile: ./services/backend/Dockerfile.prod
14+
image: octodocs-backend:latest
15+
16+
websocket:
17+
build:
18+
context: .
19+
dockerfile: ./services/websocket/Dockerfile.prod
20+
image: octodocs-websocket:latest

compose.prod.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ version: "3.8"
22

33
services:
44
nginx:
5-
build:
6-
context: .
7-
dockerfile: ./services/nginx/Dockerfile.prod
85
image: octodocs-nginx
96
restart: always
107
ports:
@@ -22,10 +19,7 @@ services:
2219
condition: service_healthy
2320

2421
backend:
25-
build:
26-
context: .
27-
dockerfile: ./services/backend/Dockerfile.prod
28-
image: backend:latest
22+
image: octodocs-backend:latest
2923
expose:
3024
- "3000"
3125
networks:
@@ -51,10 +45,7 @@ services:
5145
restart: always
5246

5347
websocket:
54-
build:
55-
context: .
56-
dockerfile: ./services/websocket/Dockerfile.prod
57-
image: websocket:latest
48+
image: octodocs-websocket:latest
5849
expose:
5950
- "4242"
6051
networks:

0 commit comments

Comments
 (0)