-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
279 lines (258 loc) · 5.94 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
version: '3.1'
volumes:
metadata_data: {}
middle_var: {}
historical_var: {}
broker_var: {}
coordinator_var: {}
router_var: {}
logs:
storage:
# ***************** mosquitto MQTT broker *********************
services:
mosquitto:
image: eclipse-mosquitto
hostname: mosquitto
container_name: mosquitto
ports:
# - "1883:1883"
- "8883:8883"
- "9001:9001"
volumes:
- ./mosquitto/config/mosquitto.conf:/mosquitto/config/mosquitto.conf:ro
- ./mosquitto/data:/mosquitto/data:rw
# - ./mosquitto/config:/mosquitto/config
# - ./mosquitto/etc:/etc/mosquitto:ro
# - ./mosquitto/auth-plugin.conf:/etc/mosquitto.d/auth-plugin.conf
- ./mosquitto/log:/mosquitto/log
# - ./mosquitto/lib/:/var/lib/mosquitto:rw
restart: always
networks:
iot:
aliases:
- mosquitto
# *************** node-red ****************
node-red:
#build: ./node-red
image: nodered/node-red
restart: always
hostname: node-red
container_name: mynodered
user: "0"
ports:
- "1880:1880"
links:
- mosquitto:broker
- zookeeper:zookeeper
environment:
- TZ=Europe/Brussels
depends_on:
- mosquitto
volumes:
- ./node-red/data:/data
# - ./node-red/runtime:/root/.node-red
networks:
iot:
aliases:
- node-red
zookeeper:
container_name: zookeeper
image: zookeeper:latest
ports:
- "2181:2181"
environment:
- ZOO_MY_ID=1
networks:
iot:
aliases:
- zookeeper
kafka:
container_name: kafka
image: wurstmeister/kafka
ports:
- "9092:9092"
environment:
KAFKA_ADVERTISED_HOST_NAME: 192.168.1.201
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
depends_on:
- zookeeper
networks:
iot:
aliases:
- kafka
volumes:
- ./kafka/logs:/tmp/kafka-logs
- ./kafka/data:/var/lib/kafka/data
# ******** kafka manager *********
kafka-manager:
image: dockerkafka/kafka-manager:latest
container_name: kafka-manager
hostname: kafka-manager
restart: always
environment:
ZK_HOSTS: zookeeper:2181
APPLICATION_SECRET: letmein
KM_ARGS: -Djava.net.preferIPv4Stack=true
ports:
- "9999:9000"
links:
- zookeeper:zookeeper
volumes:
- ./kafka-manager/conf:/opt/kafka-manager-1.2.7/conf
networks:
iot:
aliases:
- kafka-manager
# ****** druid config
postgres:
container_name: postgres
image: postgres:latest
volumes:
- metadata_data:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=FoolishPassword
- POSTGRES_USER=druid
- POSTGRES_DB=druid
networks:
iot:
aliases:
- postgress
coordinator:
image: apache/druid:0.17.0
container_name: coordinator
volumes:
- storage:/opt/data
- coordinator_var:/opt/druid/var
depends_on:
- zookeeper
- postgres
ports:
- "8081:8081"
command:
- coordinator
env_file:
- environment
networks:
iot:
aliases:
- coordinator
broker:
image: apache/druid:0.17.0
container_name: broker
volumes:
- broker_var:/opt/druid/var
depends_on:
- zookeeper
- postgres
- coordinator
ports:
- "8082:8082"
command:
- broker
env_file:
- environment
networks:
iot:
aliases:
- broker
historical:
image: apache/druid:0.17.0
container_name: historical
volumes:
- storage:/opt/data
- historical_var:/opt/druid/var
depends_on:
- zookeeper
- postgres
- coordinator
ports:
- "8083:8083"
command:
- historical
env_file:
- environment
networks:
iot:
aliases:
- historical
middlemanager:
image: apache/druid:0.17.0
container_name: middlemanager
volumes:
- storage:/opt/data
- middle_var:/opt/druid/var
depends_on:
- zookeeper
- postgres
- coordinator
ports:
- "8091:8091"
command:
- middleManager
env_file:
- environment
networks:
iot:
aliases:
- middlemanager
router:
image: apache/druid:0.17.0
container_name: router
volumes:
- router_var:/opt/druid/var
depends_on:
- zookeeper
- postgres
- coordinator
ports:
- "8888:8888"
command:
- router
env_file:
- environment
networks:
iot:
aliases:
- router
# ************ grafana ***********
grafana:
container_name: grafana
hostname: grafana
image: grafana/grafana
restart: always
ports:
- "3000:3000"
env_file:
- ./grafana/env.grafana
volumes:
# - ./grafana/etc:/etc/grafana
# sudo mkdir -p /volume1/docker/grafana/data; chown 472:472 /volume1/docker/grafana/data
- ./grafana/data:/var/lib/grafana
- ./grafana/grafana-plugins:/var/lib/grafana/plugins
# - GF_SECURITY_ADMIN_PASSWORD=$PASSWORD
# user: "472"
user: "0"
networks:
iot:
aliases:
- grafana
# ************ turnilo ***********
turnilo:
container_name: turnilo
hostname: turnilo
image: uchhatre/turnilo
restart: always
ports:
- "9090:9090"
environment:
- DRUID_BROKER_URL= http://192.168.1.201:8082
# volumes :
# - ./turnilo/config:/etc/turnilo/config.yaml:rw
# - ./turnilo/logs:/v
networks:
iot:
aliases:
- turnilo
networks:
iot:
driver: bridge