-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·338 lines (322 loc) · 8.26 KB
/
Copy pathdocker-compose.yml
File metadata and controls
executable file
·338 lines (322 loc) · 8.26 KB
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
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
version: '3.7'
services:
gateway:
build:
context: backend/gateway
dockerfile: Dockerfile
container_name: gateway
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
ports:
- 8080:8080
auth:
build:
context: backend/auth
dockerfile: Dockerfile
container_name: auth
volumes:
- ./backend/auth:/app
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
depends_on:
- auth_db
- redis
environment:
LISTEN_PORT: 8080
DB_USERNAME: root
DB_PASSWORD: password@1
DB_HOST: auth_db
DB_PORT: 3306
DB_NAME: auth
NOTIFICATION_SERVICE: notification
NOTIFICATION_PORT: 8080
CACHE_HOST: redis
CACHE_PORT: 6379
CACHE_PASSWORD: ""
CACHE_DB: 0
IS_SECURE_CONNECTION: "false"
group:
build:
context: backend/group
dockerfile: Dockerfile
container_name: group
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
depends_on:
- group_db
environment:
LISTEN_PORT: 8080
DB_USERNAME: root
DB_PASSWORD: password@1
DB_HOST: group_db
DB_PORT: 3306
DB_NAME: group
AUTH_SERVICE: auth
AUTH_PORT: 8080
IS_SECURE_CONNECTION: "false"
NOTIFICATION_SERVICE: notification
NOTIFICATION_PORT: 8080
activity:
build:
context: backend/activity
dockerfile: Dockerfile
container_name: activity
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
depends_on:
- activity_db
environment:
LISTEN_PORT: 8080
DB_USERNAME: root
DB_PASSWORD: password@1
DB_HOST: activity_db
DB_PORT: 3306
DB_NAME: activity
PLANI_DOMAIN: plan
PLANI_PORT: 8080
GROUPI_DOMAIN: group
GROUPI_PORT: 8080
EVENTI_DOMAIN: event
EVENTI_PORT: 8080
IS_SECURE_CONNECTION: "false"
notification:
build:
context: backend/notification
dockerfile: Dockerfile
container_name: notification
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
depends_on:
- notification_db
environment:
LISTEN_PORT: 8080
DB_USERNAME: root
DB_PASSWORD: password@1
DB_HOST: notification_db
DB_PORT: 3306
DB_NAME: notification
AUTH_SERVICE: auth
AUTH_PORT: 8080
GCP_CLOUD_TASK_HOST: gcloud-tasks-emulator
GCP_CLOUD_TASK_PORT: 8123
GCP_CLOUD_TASK_PROJECT_ID: daring-acumen-370401
GCP_CLOUD_TASK_LOCATION_ID: asia-southeast2
GCP_CLOUD_TASK_QUEUE_ID: test-queue1
# GCP_CLOUD_TASK_PROJECT_ID: new-runtracking
# GCP_CLOUD_TASK_LOCATION_ID: asia-southeast1
# GCP_CLOUD_TASK_QUEUE_ID: notification
IS_SECURE_CONNECTION: "false"
INTERMEDIARY_SCHEME: http
INTERMEDIARY_URL: intermediary:8080
ENVIROMENT_MODE: local
intermediary:
build:
context: backend/intermediary
dockerfile: Dockerfile
container_name: intermediary
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
depends_on:
- notification_db
environment:
LISTEN_HTTP_PORT: 8080
DB_USERNAME: root
DB_PASSWORD: password@1
DB_HOST: notification_db
DB_PORT: 3306
DB_NAME: notification
AUTH_SERVICE: auth
AUTH_PORT: 8080
PLAN_SERVICE: plan
PLAN_PORT: 8080
IS_SECURE_CONNECTION: "false"
GROUP_SERVICE: group
GROUP_PORT: 8080
ports:
- 8082:8080
umage:
build:
context: backend/umage
dockerfile: Dockerfile
container_name: umage
environment:
KEY: ""
plan:
build:
context: backend/plan
dockerfile: Dockerfile
container_name: plan
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
depends_on:
- plan_db
ports:
- 8081:8080
environment:
LISTEN_PORT: 8080
DB_USERNAME: root
DB_PASSWORD: password@1
DB_HOST: plan_db
DB_PORT: 3306
DB_NAME: plan
NOTIFICATIONI_DOMAIN: notification
NOTIFICATIONI_PORT: 8080
IS_SECURE_CONNECTION: "false"
chat:
build:
context: backend/chat
dockerfile: Dockerfile
container_name: chat
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
depends_on:
- chat_db
ports:
- 8088:8080
environment:
LISTEN_PORT: 8080
DB_USERNAME: root
DB_PASSWORD: password@1
DB_HOST: chat_db
DB_PORT: 3306
DB_NAME: chat
AUTH_SERVICE: auth
AUTH_PORT: 8080
NOTIFICATION_SERVICE: notification
NOTIFICATION_PORT: 8080
# GCP_CLOUD_TASK_PROJECT_ID: new-runtracking
# GCP_CLOUD_TASK_LOCATION_ID: asia-southeast1
# GCP_CLOUD_TASK_QUEUE_ID: notification
IS_SECURE_CONNECTION: "false"
event:
build:
context: backend/event
dockerfile: Dockerfile
container_name: event
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
depends_on:
- event_db
environment:
LISTEN_PORT: 8080
DB_USERNAME: root
DB_PASSWORD: password@1
DB_HOST: event_db
DB_PORT: 3306
DB_NAME: event
GROUPI_DOMAIN: group
GROUPI_PORT: 8080
NOTIFICATIONI_DOMAIN: notification
NOTIFICATIONI_PORT: 8080
IS_SECURE_CONNECTION: "false"
gcloud-tasks-emulator:
image: ghcr.io/aertje/cloud-tasks-emulator:latest
command: -host 0.0.0.0 -port 8123 -queue "projects/daring-acumen-370401/locations/asia-southeast2/queues/test-queue1"
ports:
- "${TASKS_PORT:-8123}:8123"
environment:
APP_ENGINE_EMULATOR_HOST: http://localhost:8080
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
redis:
image: redis:latest
container_name: redis
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
ports:
- "6379:6379"
# restart: always
auth_db:
image: mysql
environment:
MYSQL_ROOT_PASSWORD: password@1
MYSQL_DATABASE: auth
container_name: 'db-auth'
volumes:
- "./tmp/db/auth:/var/lib/mysql"
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
ports:
- 33306:3306
group_db:
image: mysql
environment:
MYSQL_ROOT_PASSWORD: password@1
MYSQL_DATABASE: group
container_name: 'db-group'
volumes:
- "./tmp/db/group:/var/lib/mysql"
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
ports:
- 33307:3306
activity_db:
image: mysql
environment:
MYSQL_ROOT_PASSWORD: password@1
MYSQL_DATABASE: activity
container_name: 'db-activity'
volumes:
- "./tmp/db/activity:/var/lib/mysql"
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
ports:
- 33308:3306
notification_db:
image: mysql
environment:
MYSQL_ROOT_PASSWORD: password@1
MYSQL_DATABASE: notification
container_name: 'db-notification'
volumes:
- "./tmp/db/notification:/var/lib/mysql"
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
ports:
- 33309:3306
plan_db:
image: mysql
environment:
MYSQL_ROOT_PASSWORD: password@1
MYSQL_DATABASE: plan
container_name: 'db-plan'
volumes:
- "./tmp/db/plan:/var/lib/mysql"
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
ports:
- 33310:3306
chat_db:
image: mysql
environment:
MYSQL_ROOT_PASSWORD: password@1
MYSQL_DATABASE: chat
container_name: 'db-chat'
volumes:
- "./tmp/db/chat:/var/lib/mysql"
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
ports:
- 33311:3306
event_db:
image: mysql
environment:
MYSQL_ROOT_PASSWORD: password@1
MYSQL_DATABASE: event
container_name: 'db-event'
volumes:
- "./tmp/db/event:/var/lib/mysql"
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
ports:
- 33312:3306