forked from BuildForSDGCohort2/Team-51X-Backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
113 lines (103 loc) · 3.01 KB
/
docker-compose.yml
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
version: "3"
services:
api-gateway:
build: "./api-gateway"
depends_on:
- users-service
- institution-service
- health-service
- medi-service
- messenger-service
environment:
- USERS_SERVICES_URI=http://users-service:7100
- INSTITUTION_SERVICES_URI=http://institution-service:7101
- HEALTH_SERVICES_URI=http://health-service:7102
ports:
- 7001:7001
volumes:
- ./api-gateway:/opt/app
users-service:
build: "./users-service"
depends_on:
- users-service-db
environment:
- DB_URL=mysql://root:password@users-service-db/db?charset=UTF8
ports:
- 7100:7100
volumes:
- ./users-service:/opt/app
users-service-db:
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=db
image: mariadb:10.4
ports:
- 0.0.0.0:7200:3306
institution-service:
build: "./institution-service"
depends_on:
- institution-service-db
environment:
- DB_URL=mysql://root:password@institution-service-db/db?charset=UTF8
ports:
- 7101:7101
volumes:
- ./institution-service:/opt/app
institution-service-db:
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=db
image: mariadb:10.4
ports:
- 0.0.0.0:7201:3306
health-service:
build: "./health-service"
depends_on:
- health-service-db
environment:
- DB_URL=mysql://root:password@health-service-db/db?charset=UTF8
ports:
- 7102:7102
volumes:
- ./health-service:/opt/app
health-service-db:
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=db
image: mariadb:10.4
ports:
- 0.0.0.0:7202:3306
medi-service:
build: "./medi-service"
depends_on:
- medi-service-db
environment:
- DB_URL=mysql://root:password@medi-service-db/db?charset=UTF8
ports:
- 7103:7103
volumes:
- ./medi-service:/opt/app
medi-service-db:
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=db
image: mariadb:10.4
ports:
- 0.0.0.0:7203:3306
messenger-service:
build: "./messenger-service"
depends_on:
- messenger-service-db
environment:
- DB_URL=mysql://root:password@messenger-service-db/db?charset=UTF8
ports:
- 7104:7104
volumes:
- ./messenger-service:/opt/app
messenger-service-db:
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=db
image: mariadb:10.4
ports:
- 0.0.0.0:7204:3306