-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose-zk.yml
44 lines (44 loc) · 1.01 KB
/
docker-compose-zk.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
services:
zoo1:
image: zookeeper:3.6
container_name: zoo1
environment:
ZOO_MY_ID: 1
ZOO_SERVERS: server.1=zoo1:2888:3888;2181 server.2=zoo2:2888:3888;2181 server.3=zoo3:2888:3888;2181
hostname: zoo1
ports:
- "2181:2181"
networks:
- net-zk
zoo2:
image: zookeeper:3.6
container_name: zoo2
environment:
ZOO_MY_ID: 2
ZOO_SERVERS: server.1=zoo1:2888:3888;2181 server.2=zoo2:2888:3888;2181 server.3=zoo3:2888:3888;2181
hostname: zoo2
ports:
- "2182:2181"
networks:
- net-zk
zoo3:
image: zookeeper:3.6
container_name: zoo3
environment:
ZOO_MY_ID: 3
ZOO_SERVERS: server.1=zoo1:2888:3888;2181 server.2=zoo2:2888:3888;2181 server.3=zoo3:2888:3888;2181
hostname: zoo3
ports:
- "2183:2181"
networks:
- net-zk
zoo-navigator:
image: elkozmon/zoonavigator:1.1.2
container_name: zoo-navigator
ports:
- "9000:9000"
networks:
- net-zk
networks:
net-zk:
driver: bridge