-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yaml
193 lines (178 loc) · 3.57 KB
/
docker-compose.prod.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
name: 'barnie-prod'
services:
db-auth:
image: mongo:latest
ports:
- '${DB_AUTH_PORT}:27017'
volumes:
- db-auth:/data/db
api-auth:
build:
context: .
dockerfile: Dockerfile.prod
args:
APP_NAME: api-auth
ports:
- '${API_AUTH_PORT}:3000'
environment:
NODE_ENV: production
DB_AUTH_HOST: mongodb://db-auth:27017/api-auth
APP_NAME: api-auth
depends_on:
- db-auth
db-leads:
image: mongo:latest
ports:
- '${DB_LEADS_PORT}:27017'
volumes:
- db-leads:/data/db
api-leads:
build:
context: .
dockerfile: Dockerfile.prod
args:
APP_NAME: api-leads
ports:
- '${API_LEADS_PORT}:3000'
environment:
NODE_ENV: production
DB_LEADS_HOST: mongodb://db-leads:27017/api-leads
APP_NAME: api-leads
depends_on:
- db-leads
- api-auth
leads-backoffice:
build:
context: .
dockerfile: Dockerfile.prod
args:
APP_NAME: leads-backoffice
ports:
- '${LEADS_BACKOFFICE_PORT}:3000'
environment:
NODE_ENV: production
APP_NAME: leads-backoffice
depends_on:
- api-leads
onboarding:
build:
context: .
dockerfile: Dockerfile.react.prod
args:
APP_NAME: onboarding
ports:
- '${ONBOARDING_PORT}:80'
environment:
NODE_ENV: production
APP_NAME: onboarding
depends_on:
- api-leads
db-core:
image: mongo:latest
ports:
- '${DB_CORE_PORT}:27017'
volumes:
- db-core:/data/db
api-core:
build:
context: .
dockerfile: Dockerfile.prod
args:
APP_NAME: api-core
ports:
- '${API_CORE_PORT}:3000'
environment:
NODE_ENV: production
DB_CORE_HOST: mongodb://db-core:27017/api-core
APP_NAME: api-core
depends_on:
- db-core
- api-auth
api-realtime:
build:
context: .
dockerfile: Dockerfile.prod
args:
APP_NAME: api-realtime
ports:
- '${API_REALTIME_PORT}:3000'
environment:
NODE_ENV: production
APP_NAME: api-realtime
depends_on:
- api-core
core-backoffice:
build:
context: .
dockerfile: Dockerfile.prod
args:
APP_NAME: core-backoffice
ports:
- '${CORE_BACKOFFICE_PORT}:3000'
environment:
NODE_ENV: production
APP_NAME: core-backoffice
depends_on:
- api-core
manager:
build:
context: .
dockerfile: Dockerfile.react.prod
args:
APP_NAME: manager
ports:
- '${MANAGER_PORT}:80'
environment:
NODE_ENV: production
APP_NAME: manager
depends_on:
- api-core
- api-realtime
menu:
build:
context: .
dockerfile: Dockerfile.react.prod
args:
APP_NAME: menu
ports:
- '${MENU_PORT}:80'
environment:
NODE_ENV: production
APP_NAME: menu
depends_on:
- api-core
order:
build:
context: .
dockerfile: Dockerfile.react.prod
args:
APP_NAME: order
ports:
- '${ORDER_PORT}:80'
environment:
NODE_ENV: production
APP_NAME: order
depends_on:
- api-core
- api-realtime
payment:
build:
context: .
dockerfile: Dockerfile.react.prod
args:
APP_NAME: payment
ports:
- '${PAYMENT_PORT}:80'
environment:
NODE_ENV: production
APP_NAME: payment
depends_on:
- api-core
networks:
default:
name: barnie_network
driver: bridge
volumes:
db-auth:
db-leads:
db-core: