-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
240 lines (208 loc) · 5.61 KB
/
Copy pathdocker-compose.yml
File metadata and controls
240 lines (208 loc) · 5.61 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
services:
# --- postgres ---
postgresql:
image: postgres:16
ports:
- "5432:5432"
environment:
POSTGRES_DB: data_bus
POSTGRES_USER: eflerrr
POSTGRES_PASSWORD: 505050
networks:
- backend
# --- liquibase ---
liquibase-migrations:
image: liquibase/liquibase:4.25
depends_on:
- postgresql
command:
- --changelog-file=changelog-master.xml
- --driver=org.postgresql.Driver
- --url=jdbc:postgresql://postgresql:5432/data_bus
- --username=eflerrr
- --password=505050
- update
volumes:
- ./liquibase:/liquibase/changelog
networks:
- backend
# --- kafka ---
zookeeper:
image: bitnami/zookeeper:latest
ports:
- "2181:2181"
volumes:
- "zookeeper-data:/bitnami"
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
networks:
- backend
broker:
image: bitnami/kafka:latest
ports:
- "9092:9092"
- "9093:9093"
volumes:
- "broker-data:/bitnami"
environment:
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
- ALLOW_PLAINTEXT_LISTENER=yes
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CLIENT:PLAINTEXT,EXTERNAL:PLAINTEXT
- KAFKA_CFG_LISTENERS=CLIENT://:9092,EXTERNAL://:9093
- KAFKA_CFG_ADVERTISED_LISTENERS=CLIENT://broker:9092,EXTERNAL://localhost:9093
- KAFKA_CFG_INTER_BROKER_LISTENER_NAME=CLIENT
depends_on:
- zookeeper
networks:
- backend
# --- redis ---
redis:
image: redis:latest
ports:
- "6379:6379"
networks:
- backend
# --- mongo ---
mongo:
image: mongo:latest
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: eflerrr
MONGO_INITDB_ROOT_PASSWORD: 55555
networks:
- backend
mongo-express:
image: mongo-express:latest
ports:
- "12080:8081"
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: eflerrr
ME_CONFIG_MONGODB_ADMINPASSWORD: 55555
ME_CONFIG_BASICAUTH_USERNAME: eflerrr
ME_CONFIG_BASICAUTH_PASSWORD: 11115
ME_CONFIG_MONGODB_URL: mongodb://eflerrr:55555@mongo:27017/
depends_on:
- mongo
networks:
- backend
# --- service filtering ---
service-filtering:
image: filtering:1.0
ports:
- "8081:8080"
environment:
# --- database ---
DB_URL: jdbc:postgresql://postgresql:5432/data_bus
DB_USER: eflerrr
DB_PASSWORD: 505050
# --- kafka consumer ---
KAFKA_CONSUMER_BOOTSTRAP_SERVERS: broker:9092
KAFKA_CONSUMER_CLIENT_ID: filtering_consumer
KAFKA_CONSUMER_GROUP_ID: filtering_group
KAFKA_CONSUMER_AUTO_OFFSET_RESET: latest
KAFKA_CONSUMER_TOPIC: entry_topic
# --- kafka producer ---
KAFKA_PRODUCER_BOOTSTRAP_SERVERS: broker:9092
KAFKA_PRODUCER_CLIENT_ID: filtering_producer
KAFKA_PRODUCER_ACKS: 1
KAFKA_PRODUCER_TOPIC: filtering_to_deduplication_topic
depends_on:
- postgresql
- liquibase-migrations
- broker
networks:
- backend
# --- service deduplication ---
service-deduplication:
image: deduplication:1.0
ports:
- "8082:8080"
environment:
# --- database ---
DB_URL: jdbc:postgresql://postgresql:5432/data_bus
DB_USER: eflerrr
DB_PASSWORD: 505050
# --- kafka consumer ---
KAFKA_CONSUMER_BOOTSTRAP_SERVERS: broker:9092
KAFKA_CONSUMER_CLIENT_ID: deduplication_consumer
KAFKA_CONSUMER_GROUP_ID: deduplication_group
KAFKA_CONSUMER_AUTO_OFFSET_RESET: latest
KAFKA_CONSUMER_TOPIC: filtering_to_deduplication_topic
# --- kafka producer ---
KAFKA_PRODUCER_BOOTSTRAP_SERVERS: broker:9092
KAFKA_PRODUCER_CLIENT_ID: deduplication_producer
KAFKA_PRODUCER_ACKS: 1
KAFKA_PRODUCER_TOPIC: deduplication_to_enrichment_topic
# --- redis ---
REDIS_HOST: redis
REDIS_PORT: 6379
depends_on:
- postgresql
- liquibase-migrations
- broker
- redis
networks:
- backend
# --- service enrichment ---
service-enrichment:
image: enrichment:1.0
ports:
- "8083:8080"
environment:
# --- database ---
DB_URL: jdbc:postgresql://postgresql:5432/data_bus
DB_USER: eflerrr
DB_PASSWORD: 505050
# --- kafka consumer ---
KAFKA_CONSUMER_BOOTSTRAP_SERVERS: broker:9092
KAFKA_CONSUMER_CLIENT_ID: enrichment_consumer
KAFKA_CONSUMER_GROUP_ID: enrichment_group
KAFKA_CONSUMER_AUTO_OFFSET_RESET: latest
KAFKA_CONSUMER_TOPIC: deduplication_to_enrichment_topic
# --- kafka producer ---
KAFKA_PRODUCER_BOOTSTRAP_SERVERS: broker:9092
KAFKA_PRODUCER_CLIENT_ID: enrichment_producer
KAFKA_PRODUCER_ACKS: 1
KAFKA_PRODUCER_TOPIC: exit_topic
# --- mongo ---
MONGO_CONNECTION_STRING: mongodb://eflerrr:55555@mongo:27017/
MONGO_DATABASE: data_bus
MONGO_COLLECTION: enrichment
depends_on:
- postgresql
- liquibase-migrations
- broker
- mongo
networks:
- backend
# --- service management ---
service-management:
image: management:1.0
ports:
- "8084:8080"
environment:
# --- database ---
DB_URL: jdbc:postgresql://postgresql:5432/data_bus
DB_USER: eflerrr
DB_PASSWORD: 505050
depends_on:
- postgresql
- liquibase-migrations
networks:
- backend
volumes:
zookeeper-data:
driver: local
driver_opts:
type: none
o: bind
device: ./docker-volumes/zookeeper-data
broker-data:
driver: local
driver_opts:
type: none
o: bind
device: ./docker-volumes/broker-data
networks:
backend: { }