This repository has been archived by the owner on Dec 20, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
407 lines (372 loc) · 8.45 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
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
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
version: '2.1'
services:
### Michael Jahns
weatherinput:
image: laus.fzi.de:8201/weatherba/weather_input
depends_on:
- "consul"
- "kafka"
ports:
- "8087:8087"
# volumes:
# - ./templates-sources:/root/.ba/weather
networks:
spnet:
restproducer:
image: laus.fzi.de:8201/weatherba/restproducer
depends_on:
- "consul"
ports:
- "8092:8085"
volumes:
- ./data/restproducer:/src/main/java/ba/restinterface
networks:
spnet:
dextractor:
image: laus.fzi.de:8201/weatherba/dextractor
depends_on:
- "consul"
- "jobmanager"
- "kafka"
ports:
- "8086:8086"
# volumes:
# - ./weather:/root/.ba/dextractor
networks:
spnet:
### Jochen Lutz
sensebox-simple-rest-server:
image: biggis/sbsrs:0.2.3
hostname: sbsrs
depends_on:
- kafka
ports:
- "9100:9100"
environment:
KAFKA_SERVER: kafka:9092
networks:
spnet:
ssh-tunnel:
image: mikenowak/ssh
command: "sshtunnel"
ports:
- "8022:22"
#- "8085:8085"
volumes:
- ./data/ssh-tunnel/hostkeys:/etc/ssh/hostkeys
- ./data/ssh-tunnel/home:/home
networks:
spnet:
codekunst-mqtt-adapter:
image: biggis/codekunst-mqtt:3.0.0
restart: always
depends_on:
- kafka
environment:
KAFKA_SERVER: kafka:9092
MQTT_USER: "fzi-biggis-sensors"
MQTT_PASSWORD: "ttn-account-v2.rYK7Ak_JKS2pfk8TNmuMZe3FRetPGvMAZmx09S2Bm98"
CODEKUNST_SERVER: "ssl://eu.thethings.network:8883"
CODEKUNST_TOPIC: "+/devices/+/up"
networks:
spnet:
sensebox-adapter:
image: laus.fzi.de:8201/biggisstreampipes/senseboxadapter
depends_on:
- "consul"
networks:
spnet:
sensebox-metadata-enricher:
image: laus.fzi.de:8201/biggisstreampipes/senseboxmetadataenricher
depends_on:
- "consul"
networks:
spnet:
rasterdata-adapter:
image: laus.fzi.de:8201/biggisstreampipes/rasterdata-adapter
depends_on:
- "consul"
networks:
spnet:
rasterdata-endless-source:
image: laus.fzi.de:8201/biggisstreampipes/rasterdata-endless-source
depends_on:
- "kafka"
environment:
JAVA_OPTS: "-Dkafka.server=kafka:9092"
volumes:
- "./data/tiles-tp:/tiles"
networks:
spnet:
### StreamPipes
backend:
image: laus.fzi.de:8201/streampipes/ce-backend
depends_on:
- "kafka"
- "consul"
ports:
- "8030:8030"
volumes:
- "./config:/root/.streampipes"
- "./config/aduna:/root/.aduna"
networks:
spnet:
pe-sources-samples:
image: laus.fzi.de:8201/streampipes/pe-sources-samples
depends_on:
- "consul"
# ports:
# - "8089:8089"
volumes:
- "./config:/root/.streampipes"
networks:
spnet:
pe-esper:
image: laus.fzi.de:8201/streampipes/pe-processors-esper
depends_on:
- "consul"
# ports:
# - "8090:8090"
volumes:
- "./config:/root/.streampipes"
networks:
spnet:
pe-sinks:
image: laus.fzi.de:8201/streampipes/pe-sinks-standalone
depends_on:
- "consul"
environment:
- STREAMPIPES_HOST=${HOSTNAME:-localhost}
# ports:
# - "8091:8091"
volumes:
- "./config:/root/.streampipes"
networks:
spnet:
pe-flink-samples:
image: laus.fzi.de:8201/streampipes/pe-mixed-flink
depends_on:
- "consul"
# ports:
# - "8094:8094"
volumes:
- "./config:/root/.streampipes"
networks:
spnet:
### externe Komponenten
consul:
image: consul
environment:
- "CONSUL_LOCAL_CONFIG={\"disable_update_check\": true}"
- "CONSUL_BIND_INTERFACE=eth0"
- "CONSUL_HTTP_ADDR=0.0.0.0"
entrypoint:
- consul
- agent
- -server
- -bootstrap-expect=1
- -data-dir=/consul/data
- -node=consul-one
- -bind={{ GetInterfaceIP "eth0" }}
- -client=0.0.0.0
- -enable-script-checks=true
- -ui
volumes:
- ./config/consul:/consul/data
ports:
- "8500:8500"
- "8600:8600"
networks:
spnet:
ipv4_address: 172.30.0.9
zookeeper:
image: wurstmeister/zookeeper
ports:
- "2181:2181"
#volumes:
# - ./config/zookeeper-data:/tmp/zookeeper/data
networks:
spnet:
kafka:
image: wurstmeister/kafka
depends_on:
- zookeeper
environment:
KAFKA_ADVERTISED_HOST_NAME: kafka
KAFKA_ADVERTISED_PORT: 9092
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
volumes:
# - ./config/kafka-data:/tmp/kafka/data
- /var/run/docker.sock:/var/run/docker.sock
networks:
spnet:
jobmanager:
image: laus.fzi.de:8201/streampipes/flink
ports:
- "8099:8099"
command: jobmanager
networks:
spnet:
taskmanager:
image: laus.fzi.de:8201/streampipes/flink
depends_on:
- jobmanager
environment:
- FLINK_NUM_SLOTS=20
command: taskmanager
networks:
spnet:
kafka-web-console:
image: hwestphal/kafka-web-console
ports:
- "9000:9000"
volumes:
- "./config/kafka-web-console:/data hwestphal/kafka-web-console"
networks:
spnet:
nginx:
image: laus.fzi.de:8201/streampipes/nginx
depends_on:
- backend
ports:
- "80:80"
volumes:
- "./data/nginx-static-data:/usr/share/nginx/html/static-data"
networks:
spnet:
couchdb:
image: couchdb
ports:
- "5984:5984"
volumes:
- "./config/couchdb/data:/usr/local/var/lib/couchdb"
networks:
spnet:
activemq:
image: laus.fzi.de:8201/streampipes/activemq
ports:
- "61616:61616"
- "61614:61614"
- "8161:8161"
networks:
spnet:
# elasticsearch:
# image: elasticsearch:5.2.2-alpine
# ports:
# - "9200:9200"
# - "9300:9300"
# volumes:
# - ./config/elasticsearch/data:/usr/share/elasticsearch/data
# - ./config/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
# networks:
# spnet:
#
# kibana:
# image: kibana:5.2.2
# ports:
# - "5601:5601"
# depends_on:
# - elasticsearch
# volumes:
# - ./config/kibana/kibana.yml:/opt/kibana/config/kibana.yml
# networks:
# spnet:
hdfs-name:
image: biggis/hdfs:2.7.1
ports:
- "50070:50070"
- "8020:8020"
command: start.sh name
environment:
USER_ID: ${USER_ID-1000}
USER_NAME: hdfs
HADOOP_MASTER_ADDRESS: hdfs-name
TIMEZONE: Europe/Berlin
volumes:
- ./data/hdfs-data:/data/hdfs
networks:
spnet:
hdfs-sname:
image: biggis/hdfs:2.7.1
depends_on:
- hdfs-name
ports:
- "50090:50090"
command: start.sh sname
environment:
USER_ID: ${USER_ID-1000}
USER_NAME: hdfs
HADOOP_MASTER_ADDRESS: hdfs-name
TIMEZONE: Europe/Berlin
volumes:
- ./data/hdfs-data:/data/hdfs
networks:
spnet:
hdfs-data:
image: biggis/hdfs:2.7.1
depends_on:
- hdfs-name
ports:
- "50010:50010"
- "50075:50075"
command: start.sh data
environment:
USER_ID: ${USER_ID-1000}
USER_NAME: hdfs
HADOOP_MASTER_ADDRESS: hdfs-name
TIMEZONE: Europe/Berlin
volumes:
- ./data/hdfs-data:/data/hdfs
networks:
spnet:
hdfs-client:
image: biggis/hdfs-client:2.7.1
command: upload.sh -copyFromLocal /data/hdfs/hamlet.txt /
environment:
USER_ID: ${USER_ID-1000}
USER_NAME: hdfs
HADOOP_MASTER_ADDRESS: hdfs-name
TIMEZONE: Europe/Berlin
volumes:
- ./data/hamlet.txt:/data/hdfs/hamlet.txt
networks:
spnet:
spark-master:
image: biggis/spark:2.1.0
hostname: spark-master
ports:
#- "4040:4040"
- "6066:6066"
- "7077:7077"
- "8082:8080"
command: start.sh master
environment:
USER_ID: ${USER_ID-1000}
USER_NAME: spark
TIMEZONE: Europe/Berlin
HADOOP_MASTER_ADDRESS: hdfs-name
networks:
spnet:
spark-worker:
image: biggis/spark:2.1.0
hostname: spark-worker
depends_on:
- spark-master
command: start.sh worker
ports:
- "8081:8081"
environment:
USER_ID: ${USER_ID-1000}
USER_NAME: spark
TIMEZONE: Europe/Berlin
SPARK_MASTER_ADDRESS: spark-master
HADOOP_MASTER_ADDRESS: hdfs-name
networks:
spnet:
networks:
spnet:
driver: bridge
ipam:
config:
- subnet: 172.30.0.0/16
gateway: 172.30.0.1