-
Notifications
You must be signed in to change notification settings - Fork 7
/
fcd-application.yml
291 lines (276 loc) · 9.75 KB
/
fcd-application.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
version: '3.2'
services:
zookeeper:
build:
context: ./sc4-zookeeper
image: bde2020/pilot-sc4-zookeeper
hostname: zookeeper
container_name: sc4-zookeeper
environment:
- MYID=1
# - INIT_DAEMON_STEP=setup_zookeeper
# - INIT_DAEMON_BASE_URI=http://backend/init-daemon
# - ENABLE_INIT_DAEMON=true
expose:
- "2181"
ports:
- "2181:2181"
kafka:
build:
context: ./sc4-kafka
image: bde2020/pilot-sc4-kafka
hostname: kafka
container_name: sc4-kafka
environment:
- SERVICE_PRECONDITION=zookeeper:2181
- ZOOKEEPER_SERVERS=zookeeper:2181
# - INIT_DAEMON_STEP=setup_kafka
# - ENABLE_INIT_DAEMON=true
- INITIAL_TOPICS="taxi"
# - INIT_DAEMON_BASE_URI=http://backend/init-daemon
depends_on:
- zookeeper
expose:
- "9092"
#-----------------------------------------------------------------------------
# hadoop services
namenode:
image: bde2020/hadoop-namenode:2.0.0-hadoop2.7.4-java8
hostname: namenode
container_name: sc4-namenode
# volumes:
# - hadoop_namenode:/hadoop/dfs/name
environment:
CSS_SOURCE: "hadoop"
CLUSTER_NAME: test
INIT_DAEMON_STEP: "setup_hdfs"
VIRTUAL_HOST: hdfs-namenode.big-data-europe.local
env_file:
- ./config/hadoop/hadoop.env
# volumes:
# - ./data/hadoop/namenode:/hadoop/dfs/name
expose:
- "50070"
datanode:
image: bde2020/hadoop-datanode:2.0.0-hadoop2.7.4-java8
hostname: datanode
container_name: sc4-datanode
# volumes:
# - hadoop_datanode:/hadoop/dfs/data
environment:
SERVICE_PRECONDITION: "namenode:50070"
CSS_SOURCE: "hadoop"
VIRTUAL_HOST: hdfs-datanode.big-data-europe.local
VIRTUAL_PORT: "50075"
ENABLE_INIT_DAEMON: "false"
env_file:
- ./config/hadoop/hadoop.env
resourcemanager:
image: bde2020/hadoop-resourcemanager:2.0.0-hadoop2.7.4-java8
hostname: resourcemanager
container_name: sc4-resourcemanager
expose:
- "8031"
- "8088"
environment:
SERVICE_PRECONDITION: "namenode:50070 datanode:50075"
VIRTUAL_HOST: hdfs-resourcemanager.demo.big-data-europe.local
VIRTUAL_PORT: "8088"
CSS_SOURCE: "hadoop-resource-manager"
env_file:
- ./config/hadoop/hadoop.env
depends_on:
- namenode
- datanode
historyserver:
image: bde2020/hadoop-historyserver:2.0.0-hadoop2.7.4-java8
hostname: historyserver
container_name: sc4-historyserver
# volumes:
# - ./data/hadoop/historyserver:/hadoop/yarn/timeline
env_file:
- ./config/hadoop/hadoop.env
environment:
SERVICE_PRECONDITION: "namenode:50070 datanode:50075 resourcemanager:8088"
VIRTUAL_HOST: hdfs-historyserver.demo.big-data-europe.local
VIRTUAL_PORT: "8188"
CSS_SOURCE: "hadoop-history-server"
depends_on:
- namenode
- datanode
- resourcemanager
nodemanager:
image: bde2020/hadoop-nodemanager:2.0.0-hadoop2.7.4-java8
hostname: nodemanager
container_name: sc4-nodemanager
expose:
- "8042"
environment:
SERVICE_PRECONDITION: "namenode:50070 datanode:50075 resourcemanager:8088"
VIRTUAL_HOST: hdfs-nodemanager.demo.big-data-europe.local
VIRTUAL_PORT: "8042"
CSS_SOURCE: "hadoop-node-manager"
env_file:
- ./config/hadoop/hadoop.env
depends_on:
- namenode
- datanode
- resourcemanager
filebrowser:
image: bde2020/hdfs-filebrowser
hostname: filebrowser
container_name: sc4-filebrowser
expose:
- "8088"
environment:
SERVICE_PRECONDITION: "namenode:50070 datanode:50075"
NAMENODE_HOST: namenode
VIRTUAL_HOST: hue.big-data-europe.local
VIRTUAL_PORT: "8088"
depends_on:
- namenode
- datanode
#-----------------------------------------------------------------------------
flink-master:
image: bde2020/flink-master:1.4.0-hadoop2.7
hostname: flink-master
container_name: sc4-flink-master
expose:
- "8081"
- "8080"
environment:
SERVICE_PRECONDITION: "namenode:50070 datanode:50075 resourcemanager:8088"
CSS_SOURCE: "flink-dashboard"
ENABLE_INIT_DAEMON: "false"
INIT_DAEMON_STEP: "setup_flink"
VIRTUAL_HOST: flink-master.big-data-europe.local
VIRTUAL_PORT: "8081"
# volumes:
# - ./data/flink-master:/data
env_file:
- ./config/hadoop/hadoop.env
depends_on:
- namenode
- datanode
flink-worker:
image: bde2020/flink-worker:1.4.0-hadoop2.7
hostname: flink-worker
container_name: sc4-flink-worker
environment:
SERVICE_PRECONDITION: "flink-master:8081"
FLINK_MASTER_PORT_6123_TCP_ADDR: "flink-master"
FLINK_NUM_TASK_SLOTS: "2"
CSS_SOURCE: "flink-dashboard"
ENABLE_INIT_DAEMON: "false"
VIRTUAL_HOST: flink-worker.big-data-europe.local
VIRTUAL_PORT: "8080"
depends_on:
- flink-master
producer:
image: bde2020/pilot-sc4-producer
hostname: producer
container_name: sc4-producer
build:
context: .
dockerfile: sc4-producer.dockerfile
environment:
SERVICE_PRECONDITION: "flink-master:8081 kafka:9092"
FLINK_MASTER: "flink-master"
REQUEST_SLOTS: 1
HDFS_URL: hdfs://namenode:8020
ENABLE_INIT_DAEMON: "false"
INIT_DAEMON_STEP: floating_producer
FLINK_MASTER_PORT_6123_TCP_ADDR: "flink-master"
FLINK_MASTER_PORT_6123_TCP_PORT: "6123"
FLINK_APPLICATION_ARGS: "--path hdfs://namenode:8020/user/hue/taxi_sample_100k.csv --topic taxi"
INIT_DAEMON_BASE_URI: "http://backend/init-daemon"
env_file:
- ./config/hadoop/hadoop.env
consumer:
image: bde2020/pilot-sc4-consumer
hostname: consumer
container_name: sc4-consumer
build:
context: .
dockerfile: sc4-consumer.dockerfile
environment:
SERVICE_PRECONDITION: "kafka:9092 elasticsearch:9200"
FLINK_MASTER: "flink-master"
REQUEST_SLOTS: 1
HDFS_URL: hdfs://namenode:8020
ENABLE_INIT_DAEMON: "false"
INIT_DAEMON_STEP: floating_consumer
FLINK_MASTER_PORT_6123_TCP_ADDR: "flink-master"
FLINK_MASTER_PORT_6123_TCP_PORT: "6123"
INIT_DAEMON_BASE_URI: "http://backend/init-daemon"
env_file:
- ./config/hadoop/hadoop.env
#-----------------------------------------------------------------------------
elasticsearch:
image: bde2020/sc4-elasticsearch
hostname: elasticsearch
container_name: sc4-elasticsearch
build:
context: sc4-elasticsearch/
environment:
VIRTUAL_HOST: elasticsearch.big-data-europe.local
VIRTUAL_PORT: "9200"
ports:
- 9200:9200
- 9300:9300
kibana:
image: kibana:4.6.6
hostname: kibana
container_name: sc4-kibana
environment:
ELASTICSEARCH_URL: http://elasticsearch:9200
VIRTUAL_HOST: kibana.big-data-europe.local
VIRTUAL_PORT: "5601"
ports:
- 5601:5601
#-----------------------------------------------------------------------------
# intialisation framework
# {monitor, backend, dispatcher, database, pipeline and initdaemon} <-- these are musemstack components
# ... removed
#-----------------------------------------------------------------------------
# css framework
integratorui:
build:
context: .
dockerfile: sc4-integratorui.dockerfile
image: bde2020/pilot-sc4-integratorui
hostname: integratorui
container_name: sc4-integratorui
environment:
VIRTUAL_HOST: demo.big-data-europe.local
# config/integrator/ with file user-interfaces is copied into the image, see sc4-integratorui.dockerfile
# for development bind this volume into the container
# volumes:
# - ./config/integrator:/app/config
csswrapper:
image: bde2020/pilot-sc4-csswrapper
hostname: csswrapper
container_name: sc4-csswrapper
build:
context: .
dockerfile: sc4-csswrapper.dockerfile
ports:
- 80:80
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
# config/nginx.conf copied into the image, see sc4-csswrapper.dockerfile
# for development bind this volume into the container
# - config/nginx.conf:/etc/nginx/nginx.conf
#-----------------------------------------------------------------------------
# ??? setup for running in an cluster. set the IP-Address of swarm master
# ??? this did not run yet
# environment:
# - "constraint:node==172.26.0.175"
# - DOCKER_HOST=tcp://172.26.0.175:2377
#-----------------------------------------------------------------------------
#networks:
# default:
# driver: overlay
networks:
pilot-sc4-net:
external: true