forked from dabealu/zookeeper-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (52 loc) · 1.25 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
version: '3.1'
services:
# first
zoo1:
image: zookeeper:3.4
hostname: zoo1
ports:
- 2181:2181
environment:
ZOO_MY_ID: 1
ZOO_SERVERS: server.1=0.0.0.0:2888:3888 server.2=zoo2:2888:3888 server.3=zoo3:2888:3888
exp1:
image: dabealu/zookeeper-exporter
ports:
- 8081:8080
command: --zk-host=zoo1
# second
zoo2:
image: zookeeper:3.4
hostname: zoo2
ports:
- 2182:2181
environment:
ZOO_MY_ID: 2
ZOO_SERVERS: server.1=zoo1:2888:3888 server.2=0.0.0.0:2888:3888 server.3=zoo3:2888:3888
exp2:
image: dabealu/zookeeper-exporter
ports:
- 8082:8080
command: --zk-host=zoo2
# third
zoo3:
build:
context: zoo-timeout
privileged: true # Needed for iptables drop rule to work in custom entrypoint script
restart: always
hostname: zoo3
ports:
- 2183:2181
environment:
ZOO_MY_ID: 3
ZOO_SERVERS: server.1=zoo1:2888:3888 server.2=zoo2:2888:3888 server.3=0.0.0.0:2888:3888
exp3:
image: dabealu/zookeeper-exporter
ports:
- 8083:8080
command: --zk-host=zoo3 --timeout=5
exp123:
image: dabealu/zookeeper-exporter
ports:
- 8084:8080
command: --zk-list="zoo1:2181,zoo2:2181,zoo3:2181" --timeout=5