-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yaml
217 lines (204 loc) · 4.25 KB
/
docker-compose.dev.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
name: 'barnie-dev'
services:
db:
image: mongo:latest
ports:
- '27017:27017'
volumes:
- db-data:/data/db
api-auth:
build:
context: .
dockerfile: Dockerfile.dev
args:
APP_NAME: api-auth
ports:
- '${API_AUTH_PORT}:3000'
environment:
NODE_ENV: development
DB_AUTH_HOST: mongodb://db:27017/api-auth
APP_NAME: api-auth
volumes:
- ./apps:/app/apps
- ./libs:/app/libs
- node_modules:/app/node_modules
depends_on:
- db
api-leads:
build:
context: .
dockerfile: Dockerfile.dev
args:
APP_NAME: api-leads
ports:
- '${API_LEADS_PORT}:3000'
environment:
NODE_ENV: development
DB_LEADS_HOST: mongodb://db:27017/api-leads
APP_NAME: api-leads
volumes:
- ./apps:/app/apps
- ./libs:/app/libs
- node_modules:/app/node_modules
depends_on:
- db
- api-auth
leads-backoffice:
build:
context: .
dockerfile: Dockerfile.dev
args:
APP_NAME: leads-backoffice
ports:
- '${LEADS_BACKOFFICE_PORT}:3000'
environment:
NODE_ENV: development
APP_NAME: leads-backoffice
volumes:
- ./apps:/app/apps
- ./libs:/app/libs
- node_modules:/app/node_modules
depends_on:
- api-leads
onboarding:
build:
context: .
dockerfile: Dockerfile.dev
args:
APP_NAME: onboarding
ports:
- '${ONBOARDING_PORT}:3000'
environment:
NODE_ENV: development
volumes:
- ./apps:/app/apps
- ./libs:/app/libs
- node_modules:/app/node_modules
depends_on:
- api-leads
api-core:
build:
context: .
dockerfile: Dockerfile.dev
args:
APP_NAME: api-core
ports:
- '${API_CORE_PORT}:3000'
environment:
NODE_ENV: development
DB_CORE_HOST: mongodb://localhost:27017/api-core
APP_NAME: api-core
volumes:
- ./apps:/app/apps
- ./libs:/app/libs
- node_modules:/app/node_modules
depends_on:
- db
- api-auth
api-realtime:
build:
context: .
dockerfile: Dockerfile.dev
args:
APP_NAME: api-realtime
ports:
- '${API_REALTIME_PORT}:3000'
environment:
NODE_ENV: development
APP_NAME: api-realtime
volumes:
- ./apps:/app/apps
- ./libs:/app/libs
- node_modules:/app/node_modules
depends_on:
- api-core
core-backoffice:
build:
context: .
dockerfile: Dockerfile.dev
args:
APP_NAME: core-backoffice
ports:
- '${CORE_BACKOFFICE_PORT}:3000'
environment:
NODE_ENV: development
APP_NAME: core-backoffice
volumes:
- ./apps:/app/apps
- ./libs:/app/libs
- node_modules:/app/node_modules
depends_on:
- api-core
manager:
build:
context: .
dockerfile: Dockerfile.dev
args:
APP_NAME: manager
ports:
- '${MANAGER_PORT}:4200'
environment:
NODE_ENV: development
volumes:
- ./apps:/app/apps
- ./libs:/app/libs
- node_modules:/app/node_modules
depends_on:
- api-core
- api-realtime
menu:
build:
context: .
dockerfile: Dockerfile.dev
args:
APP_NAME: menu
ports:
- '${MENU_PORT}:4200'
environment:
NODE_ENV: development
volumes:
- ./apps:/app/apps
- ./libs:/app/libs
- node_modules:/app/node_modules
depends_on:
- api-core
order:
build:
context: .
dockerfile: Dockerfile.dev
args:
APP_NAME: order
ports:
- '${ORDER_PORT}:4200'
environment:
NODE_ENV: development
volumes:
- ./apps:/app/apps
- ./libs:/app/libs
- node_modules:/app/node_modules
depends_on:
- api-core
- api-realtime
payment:
build:
context: .
dockerfile: Dockerfile.dev
args:
APP_NAME: payment
ports:
- '${PAYMENT_PORT}:4200'
environment:
NODE_ENV: development
volumes:
- ./apps:/app/apps
- ./libs:/app/libs
- node_modules:/app/node_modules
depends_on:
- api-core
networks:
default:
name: barnie_network
driver: bridge
volumes:
db-data:
node_modules: