forked from luigiselmi/flink-kafka-consumer
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
202 lines (187 loc) · 5.76 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
version: '3.2'
services:
# ---------------- Kakfa & Zookeeper --------------
zookeeper:
image: bde2020/pilot-sc4-zookeeper
build:
context: ./sc4-zookeeper
hostname: zookeeper
container_name: sc4-zookeeper
environment:
- MYID=1
expose:
- "2181"
ports:
- "2181:2181"
networks:
- pilot-sc4-net
kafka:
image: bde2020/pilot-sc4-kafka
build:
context: ./sc4-kafka
hostname: kafka
container_name: sc4-kafka
environment:
- SERVICE_PRECONDITION=zookeeper:2181
- ZOOKEEPER_SERVERS=zookeeper:2181
- INITIAL_TOPICS="taxi"
depends_on:
- zookeeper
expose:
- "9092"
networks:
- pilot-sc4-net
# -------------------- Flink -----------------------------
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
networks:
- pilot-sc4-net
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
networks:
- pilot-sc4-net
fcd-producer:
image: bde2020/pilot-sc4-fcd-producer:v0.10.0
hostname: fcd-producer
container_name: fcd-producer
restart: unless-stopped
environment:
- ZOOKEEPER_SERVERS=zookeeper:2181
depends_on:
- kafka
networks:
- pilot-sc4-net
fcd-consumer:
image: bde2020/pilot-sc4-monitoring:v0.10.0
build:
context: .
dockerfile: sc4-monitor.dockerfile
hostname: consumer
container_name: fcd-consumer
environment:
SERVICE_PRECONDITION: "kafka:9092 elasticsearch:9200"
FLINK_MASTER: "flink-master"
REQUEST_SLOTS: 1
POSTGRES_PASSWORD: "password"
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"
networks:
- pilot-sc4-net
postgis:
image: bde2020/pilot-sc4-postgis:v0.10.0
hostname: postgis
container_name: postgis
restart: unless-stopped
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=password
networks:
- pilot-sc4-net
rserve:
image: bde2020/pilot-sc4-rserve:v0.10.0
hostname: rserve
container_name: rserve
restart: unless-stopped
ports:
- "6311:6311"
environment:
- POSTGRES_PASSWORD=password
depends_on:
- postgis
networks:
- pilot-sc4-net
#-----------------------------------------------------------------------------
elasticsearch:
image: bde2020/sc4-elasticsearch
hostname: elasticsearch
container_name: elasticsearch
build:
context: ./sc4-elasticsearch
environment:
VIRTUAL_HOST: elasticsearch.big-data-europe.local
VIRTUAL_PORT: "9200"
cluster.name: elasticsearch
ports:
- 9200:9200
- 9300:9300
networks:
- pilot-sc4-net
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
networks:
- pilot-sc4-net
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
networks:
- pilot-sc4-net
csswrapper:
image: bde2020/pilot-sc4-csswrapper
build:
context: .
dockerfile: sc4-csswrapper.dockerfile
hostname: csswrapper
container_name: sc4-csswrapper
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
networks:
- pilot-sc4-net
#networks:
# default:
# driver: overlay
networks:
pilot-sc4-net:
external: true