-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
223 lines (219 loc) · 5.75 KB
/
docker-compose.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
218
219
220
221
222
223
version: "3"
services:
#kafka and zookeeeper
zookeeper-container:
image: confluentinc/cp-zookeeper
environment:
- ZOOKEEPER_CLIENT_PORT=2181
kafka-container:
image: confluentinc/cp-kafka
depends_on:
- zookeeper-container
environment:
- KAFKA_BROKER_ID=1
- KAFKA_ZOOKEEPER_CONNECT=zookeeper-container:2181
- KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://kafka-container:9092
- KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1
#Databases
bestelling_db:
image: mysql:5.7
container_name: bestelling_db
command: --default-authentication-plugin=mysql_native_password
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=Bestelling
externelevering_db:
image: mysql:5.7
container_name: externelevering_db
command: --default-authentication-plugin=mysql_native_password
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=ExterneLevering
fullfilmentbestelling_db:
image: mysql:5.7
container_name: fullfilmentbestelling_db
command: --default-authentication-plugin=mysql_native_password
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=Bestelling
klanten_db:
image: mysql:5.7
container_name: klanten_db
command: --default-authentication-plugin=mysql_native_password
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=Klanten
koerier_db:
image: mysql:5.7
container_name: koerier_db
command: --default-authentication-plugin=mysql_native_password
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=Koerier
magazijn_db:
image: mysql:5.7
container_name: magazijn_db
command: --default-authentication-plugin=mysql_native_password
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=Magazijn
sorteeritem_db:
image: mysql:5.7
container_name: sorteeritem_db
command: --default-authentication-plugin=mysql_native_password
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=SorteerItem
sorteer_db:
image: mysql:5.7
container_name: sorteer_db
command: --default-authentication-plugin=mysql_native_password
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=Sorteer
trackandtrace_db:
image: mysql:5.7
container_name: trackandtrace_db
command: --default-authentication-plugin=mysql_native_password
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=TrackAndTrace
vervoer_db:
image: mysql:5.7
container_name: vervoer_db
command: --default-authentication-plugin=mysql_native_password
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=Vervoer
zending_db:
image: mysql:5.7
container_name: zending_db
command: --default-authentication-plugin=mysql_native_password
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=Zending
#Services
api-gw:
build: ./APIGateway
container_name: api-gw
links:
- bestel-service
- externelevering-service
- fullfilmentbestelling-service
- klanten-service
- koerier-service
- magazijn-service
- sorteeritem-service
- trackandtrace-service
- zending-service
depends_on:
- bestel-service
- externelevering-service
- fullfilmentbestelling-service
- klanten-service
- koerier-service
- magazijn-service
- sorteeritem-service
- trackandtrace-service
- zending-service
ports:
- 80:8080
bestel-service:
build: ./BestelManagement
container_name: bestel-service
links:
- bestelling_db
- kafka-container
depends_on:
- bestelling_db
- kafka-container
externelevering-service:
build: ./ExterneLeveringService
container_name: externelevering-service
links:
- externelevering_db
- kafka-container
depends_on:
- externelevering_db
- kafka-container
fullfilmentbestelling-service:
build: ./FulfilmentBestelManagement
container_name: fullfilmentbestelling-service
links:
- fullfilmentbestelling_db
- kafka-container
depends_on:
- fullfilmentbestelling_db
- kafka-container
klanten-service:
build: ./KlantenService
container_name: klanten-service
links:
- klanten_db
- kafka-container
depends_on:
- klanten_db
- kafka-container
koerier-service:
build: ./KoerierService
container_name: koerier-service
links:
- koerier_db
- kafka-container
depends_on:
- koerier_db
- kafka-container
magazijn-service:
build: ./MagazijnService
container_name: magazijn-service
links:
- magazijn_db
- kafka-container
depends_on:
- magazijn_db
- kafka-container
sorteeritem-service:
build: ./SorteerItemManagement
container_name: sorteeritem-service
links:
- sorteeritem_db
- kafka-container
depends_on:
- sorteeritem_db
- kafka-container
sorteer-service:
build: ./SorteerService
container_name: sorteer-service
links:
- sorteer_db
- kafka-container
depends_on:
- sorteer_db
- kafka-container
trackandtrace-service:
build: ./TrackAndTraceService
container_name: trackandtrace-service
links:
- trackandtrace_db
- kafka-container
depends_on:
- trackandtrace_db
- kafka-container
vervoer-service:
build: ./VervoerService
container_name: vervoer-service
links:
- vervoer_db
- kafka-container
depends_on:
- vervoer_db
- kafka-container
zending-service:
build: ./ZendingManagement2
container_name: zending-service
links:
- zending_db
- kafka-container
depends_on:
- zending_db
- kafka-container