forked from MoaidAlrazhy/ea-nov-2023-project-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
220 lines (208 loc) · 4.13 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
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
services:
discovery:
container_name: discovery
image: servicediscovery
ports:
- "8000:8000"
restart: always
networks:
- alumni
environment:
- PORT=8000
- EUREKA_URI=http://discovery:8000/eureka
config:
container_name: config
image: configserver
ports:
- "8001:8001"
restart: always
depends_on:
- discovery
networks:
- alumni
environment:
- PORT=8001
- EUREKA_URI=http://discovery:8000/eureka
- EVENT_PORT=8801
- EVENT_DB_URL=eventsdb:3306
- EVENT_DB_NAME=eventsDb
- EVENT_DB_USER=root
- EVENT_DB_PASSWORD=1
apigateway:
container_name: apigateway
image: apigateway
ports:
- "8002:8002"
restart: always
depends_on:
- discovery
- config
networks:
- alumni
environment:
- PORT=8002
- EUREKA_URI=http://discovery:8000/eureka
eventservice:
container_name: eventservice
image: eventservice
ports:
- "8801:8801"
restart: always
depends_on:
- discovery
- config
- apigateway
- eventsdb
- userservice
networks:
- alumni
- events
environment:
- PORT=8801
- EUREKA_URI=http://discovery:8000/eureka
- CONFIG_URI=http://config:8001
- EVENT_DB_URL=eventsdb:3306
- EVENT_DB_NAME=eventsdb
- EVENT_DB_USER=root
- EVENT_DB_PASSWORD=1
chatservice:
container_name: chatservice
image: chatservice
ports:
- "8809:8809"
restart: always
depends_on:
- discovery
- config
- apigateway
- chatdb
- userservice
networks:
- alumni
- chat
environment:
- PORT=8809
- EUREKA_URI=http://discovery:8000/eureka
- CONFIG_URI=http://config:8001
- CHAT_DB_URL=chatdb:3306
- CHAT_DB_NAME=chatDB
- CHAT_DB_USER=root
- CHAT_DB_PASSWORD=1
userservice:
container_name: userservice
image: userservice
ports:
- "8802:8802"
restart: always
depends_on:
- discovery
- config
- apigateway
- usersdb
- rabbitmq
- zipkin
networks:
- alumni
- users
environment:
- PORT=8802
- EUREKA_URI=http://discovery:8000/eureka
- CONFIG_URI=http://config:8001
- USER_DB_URL=usersdb:3306
- USER_DB_NAME=usersdb
- USER_DB_USER=root
- USER_DB_PASSWORD=1
courseservice:
container_name: courseservice
image: courseservice
ports:
- "8808:8808"
restart: always
depends_on:
- discovery
- config
- apigateway
- coursesdb
- rabbitmq
- zipkin
networks:
- alumni
- courses
environment:
- PORT=8808
- EUREKA_URI=http://discovery:8000/eureka
- CONFIG_URI=http://config:8001
- USER_DB_URL=coursesdb:3306
- USER_DB_NAME=coursesdb
- USER_DB_USER=root
- USER_DB_PASSWORD=1
rabbitmq:
container_name: rabbitmq
image: rabbitmq:3.12-management
ports:
- "5672:5672"
- "15672:15672"
networks:
- alumni
- users
- courses
zipkin:
container_name: zipkin
image: openzipkin/zipkin
ports:
- "9411:9411"
networks:
- alumni
- users
- courses
eventsdb:
container_name: eventsdb
image: mysql
ports:
- "9901:3306"
environment:
- MYSQL_ROOT_PASSWORD=1
restart: always
networks:
- events
usersdb:
container_name: usersdb
image: mysql
ports:
- "9902:3306"
environment:
- MYSQL_ROOT_PASSWORD=1
restart: always
networks:
- users
coursesdb:
container_name: coursesdb
image: mysql
ports:
- "9920:3306"
environment:
- MYSQL_ROOT_PASSWORD=1
restart: always
networks:
- courses
chatdb:
container_name: chatdb
image: mysql
ports:
- "9909:3306"
environment:
- MYSQL_ROOT_PASSWORD=1
restart: always
networks:
- chat
networks:
alumni:
driver: bridge
events:
driver: bridge
users:
driver: bridge
courses:
driver: bridge
chat:
driver: bridge