-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·249 lines (228 loc) · 5.38 KB
/
docker-compose.yml
File metadata and controls
executable file
·249 lines (228 loc) · 5.38 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
version: '3'
services:
hazelcast-payara:
build: ./datagrid
image: lreimer/hazelcast-payara:1.0
volumes:
- ./datagrid/src/main/docker/hazelcast_default.xml:/opt/payara/config/hazelcast.xml
expose:
- "5701" # the outbound Hazelcast port
- "54327" # the multicast Hazelcast port
ports:
- "18080:8080" # the HTTP endpoint
networks:
- datanet
mqtt-source:
build: ./sources/mqtt
image: lreimer/mqtt-source:1.0
ports:
- "18081:8080" # the HTTP endpoint
depends_on:
- eclipse-mosquitto
links:
- eclipse-mosquitto
networks:
- datanet
# Requires MQTT plugin to be enabled for Rabbit MQ
# http://www.rabbitmq.com/mqtt.html
#
# rabbitmq-source:
# build: ./sources/rabbitmq
# image: lreimer/rabbitmq-source:1.0
# ports:
# - "18089:8080" # the HTTP endpoint
# depends_on:
# - rabbit-mq
# links:
# - rabbit-mq
# networks:
# - datanet
csv-source:
build: ./sources/csv
image: lreimer/csv-source:1.0
volumes:
- ./sources/csv/import.csv:/data/import.csv
ports:
- "18082:8080" # the HTTP endpoint
depends_on:
- message-queue
links:
- message-queue
networks:
- datanet
database-source:
build: ./sources/database
image: lreimer/database-source:1.0
ports:
- "18088:8080" # the HTTP endpoint
depends_on:
- message-queue
- cockroach1
links:
- message-queue
- cockroach1
networks:
- datanet
# kafka-source:
# build: ./sources/kafka
# image: lreimer/kafka-source:1.0
# ports:
# - "18090:8080" # the HTTP endpoint
# depends_on:
# - kafka
# links:
# - kafka
# networks:
# - datanet
weather-source:
build: ./sources/rest
image: lreimer/weather-source:1.1
ports:
- "18083:8080" # the HTTP endpoint
depends_on:
- message-queue
links:
- message-queue
networks:
- datanet
weather-processor:
build: ./processors/weather
image: lreimer/weather-processor:1.0
volumes:
- ./processors/weather/src/main/docker/hazelcast_default.xml:/opt/payara/config/hazelcast.xml
expose:
- "5701" # the outbound Hazelcast port
- "54327" # the multicast Hazelcast port
ports:
- "18084:8080" # the HTTP endpoint
depends_on:
- message-queue
- hazelcast-payara
links:
- message-queue
- hazelcast-payara
networks:
- datanet
location-processor:
build: ./processors/location
image: lreimer/location-processor:1.0
volumes:
- ./processors/location/src/main/docker/hazelcast_default.xml:/opt/payara/config/hazelcast.xml
expose:
- "5701" # the outbound Hazelcast port
- "54327" # the multicast Hazelcast port
ports:
- "18086:8080" # the HTTP endpoint
depends_on:
- message-queue
- hazelcast-payara
links:
- message-queue
- hazelcast-payara
networks:
- datanet
weather-sink:
build: ./sinks/weather-file
image: lreimer/weather-file:1.0
ports:
- "18085:8080" # the HTTP endpoint
depends_on:
- message-queue
links:
- message-queue
networks:
- datanet
weather-rdbms:
build: ./sinks/weather-rdbms
image: lreimer/weather-rdbms:1.0
ports:
- "18087:8080" # the HTTP endpoint
depends_on:
- message-queue
- cockroach1
links:
- message-queue
- cockroach1
networks:
- datanet
eclipse-mosquitto:
image: eclipse-mosquitto:1.4.12
ports:
- "1883:1883"
- "9001:9001"
networks:
- datanet
# rabbit-mq:
# image: rabbitmq:3-management
# expose:
# - "1883"
# ports:
# - "5672:5672" # AMQP Port
# - "15672:15672" # HTTP Admin port
# networks:
# - datanet
message-queue:
image: rmohr/activemq:5.14.3
expose:
- "61616" # the JMS port
ports:
- "8161:8161" # the admin web UI
networks:
- datanet
cockroach1:
image: cockroachdb/cockroach:v1.1.5
hostname: cockroach1
command: start --insecure
ports:
- "26257:26257"
- "8080:8080"
volumes:
- "${PWD}/cockroach/data/cockroach1:/cockroach/cockroach-data"
networks:
datanet:
aliases:
- cockroach-db
- postgres-db
cockroach2:
image: cockroachdb/cockroach:v1.1.5
hostname: cockroach2
command: start --insecure --join=cockroach1
volumes:
- "${PWD}/cockroach/data/cockroach2:/cockroach/cockroach-data"
depends_on:
- cockroach1
links:
- cockroach1
networks:
- datanet
cockroach3:
image: cockroachdb/cockroach:v1.1.5
hostname: cockroach3
command: start --insecure --join=cockroach1
volumes:
- "${PWD}/cockroach/data/cockroach3:/cockroach/cockroach-data"
depends_on:
- cockroach1
links:
- cockroach1
networks:
- datanet
# zookeeper:
# image: wurstmeister/zookeeper
# ports:
# - "2181:2181"
# networks:
# - datanet
# kafka:
# image: wurstmeister/kafka
# ports:
# - "9092"
# depends_on:
# - zookeeper
# environment:
# KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
# networks:
# - datanet
networks:
datanet:
driver: bridge