File tree 5 files changed +10
-12
lines changed
5 files changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,6 @@ services:
15
15
networks :
16
16
- frontend
17
17
depends_on :
18
- backend :
19
- condition : service_healthy
20
18
websocket :
21
19
condition : service_healthy
22
20
@@ -78,8 +76,6 @@ services:
78
76
depends_on :
79
77
postgres :
80
78
condition : service_healthy
81
- backend :
82
- condition : service_healthy
83
79
redis :
84
80
condition : service_healthy
85
81
healthcheck :
@@ -106,7 +102,7 @@ services:
106
102
volumes :
107
103
- postgres_data:/var/lib/postgresql/data
108
104
networks :
109
- - net
105
+ - backend
110
106
healthcheck :
111
107
test : ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
112
108
interval : 10s
@@ -144,3 +140,5 @@ networks:
144
140
driver : bridge
145
141
backend :
146
142
driver : bridge
143
+ volumes :
144
+ postgres_data :
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ FROM growth123/octodocs-modules:latest
2
2
3
3
# 소스 코드 복사
4
4
# 덮어씌워지지만 node_modules를 .dockerignore에 등록했기 때문에 node_modules는 원래 있던 그대로
5
- COPY . . /app
5
+ COPY . /app
6
6
7
7
WORKDIR /app/apps/backend
8
8
@@ -14,4 +14,4 @@ ENV NODE_ENV=production
14
14
15
15
EXPOSE 3000
16
16
17
- CMD ["yarn", "start:prod "]
17
+ CMD ["yarn", "start"]
Original file line number Diff line number Diff line change 2
2
FROM growth123/octodocs-modules:latest as builder
3
3
4
4
# 소스 코드 복사
5
- COPY . .
5
+ COPY . /app
6
6
COPY ./.env.client /app/apps/frontend/.env
7
7
COPY ./.env.client /app/apps/frontend/.env.local
8
8
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ FROM growth123/octodocs-modules:latest
2
2
3
3
# 소스 코드 복사
4
4
# 덮어씌워지지만 node_modules를 .dockerignore에 등록했기 때문에 node_modules는 원래 있던 그대로
5
- COPY . . /app
5
+ COPY . /app
6
6
7
7
WORKDIR /app/apps/scheduler
8
8
@@ -14,4 +14,4 @@ ENV NODE_ENV=production
14
14
15
15
EXPOSE 3001
16
16
17
- CMD ["yarn", "start:prod "]
17
+ CMD ["yarn", "start"]
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ FROM growth123/octodocs-modules:latest
2
2
3
3
# 소스 코드 복사
4
4
# 덮어씌워지지만 node_modules를 .dockerignore에 등록했기 때문에 node_modules는 원래 있던 그대로
5
- COPY . . /app
5
+ COPY . /app
6
6
7
7
WORKDIR /app/apps/websocket
8
8
@@ -14,4 +14,4 @@ ENV NODE_ENV=production
14
14
15
15
EXPOSE 4242
16
16
17
- CMD ["yarn", "start:prod "]
17
+ CMD ["yarn", "start"]
You can’t perform that action at this time.
0 commit comments