Skip to content

Commit 9f9b79e

Browse files
committed
Merge branch 'develop'
2 parents 49e4fe8 + 4ce7731 commit 9f9b79e

File tree

5 files changed

+10
-12
lines changed

5 files changed

+10
-12
lines changed

compose.prod.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ services:
1515
networks:
1616
- frontend
1717
depends_on:
18-
backend:
19-
condition: service_healthy
2018
websocket:
2119
condition: service_healthy
2220

@@ -78,8 +76,6 @@ services:
7876
depends_on:
7977
postgres:
8078
condition: service_healthy
81-
backend:
82-
condition: service_healthy
8379
redis:
8480
condition: service_healthy
8581
healthcheck:
@@ -106,7 +102,7 @@ services:
106102
volumes:
107103
- postgres_data:/var/lib/postgresql/data
108104
networks:
109-
- net
105+
- backend
110106
healthcheck:
111107
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
112108
interval: 10s
@@ -144,3 +140,5 @@ networks:
144140
driver: bridge
145141
backend:
146142
driver: bridge
143+
volumes:
144+
postgres_data:

services/backend/Dockerfile.prod

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM growth123/octodocs-modules:latest
22

33
# 소스 코드 복사
44
# 덮어씌워지지만 node_modules를 .dockerignore에 등록했기 때문에 node_modules는 원래 있던 그대로
5-
COPY . ./app
5+
COPY . /app
66

77
WORKDIR /app/apps/backend
88

@@ -14,4 +14,4 @@ ENV NODE_ENV=production
1414

1515
EXPOSE 3000
1616

17-
CMD ["yarn", "start:prod"]
17+
CMD ["yarn", "start"]

services/nginx/Dockerfile.prod

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
FROM growth123/octodocs-modules:latest as builder
33

44
# 소스 코드 복사
5-
COPY . .
5+
COPY . /app
66
COPY ./.env.client /app/apps/frontend/.env
77
COPY ./.env.client /app/apps/frontend/.env.local
88

services/scheduler/Dockerfile.prod

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM growth123/octodocs-modules:latest
22

33
# 소스 코드 복사
44
# 덮어씌워지지만 node_modules를 .dockerignore에 등록했기 때문에 node_modules는 원래 있던 그대로
5-
COPY . ./app
5+
COPY . /app
66

77
WORKDIR /app/apps/scheduler
88

@@ -14,4 +14,4 @@ ENV NODE_ENV=production
1414

1515
EXPOSE 3001
1616

17-
CMD ["yarn", "start:prod"]
17+
CMD ["yarn", "start"]

services/websocket/Dockerfile.prod

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM growth123/octodocs-modules:latest
22

33
# 소스 코드 복사
44
# 덮어씌워지지만 node_modules를 .dockerignore에 등록했기 때문에 node_modules는 원래 있던 그대로
5-
COPY . ./app
5+
COPY . /app
66

77
WORKDIR /app/apps/websocket
88

@@ -14,4 +14,4 @@ ENV NODE_ENV=production
1414

1515
EXPOSE 4242
1616

17-
CMD ["yarn", "start:prod"]
17+
CMD ["yarn", "start"]

0 commit comments

Comments
 (0)