2018-05-11 09:30:45 +00:00
|
|
|
version: "3.6"
|
2020-09-10 10:49:30 +00:00
|
|
|
services:
|
2018-05-11 09:30:45 +00:00
|
|
|
#zookeepers
|
|
|
|
zoo1:
|
|
|
|
image: zookeeper:3.4
|
|
|
|
restart: always
|
|
|
|
hostname: zoo1
|
|
|
|
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
|
2020-09-10 10:49:30 +00:00
|
|
|
expose:
|
|
|
|
- "2181"
|
|
|
|
- "2888"
|
|
|
|
- "3888"
|
|
|
|
ports:
|
|
|
|
- "2181"
|
2018-05-11 09:30:45 +00:00
|
|
|
networks:
|
|
|
|
- pinpoint
|
|
|
|
zoo2:
|
|
|
|
image: zookeeper:3.4
|
|
|
|
restart: always
|
|
|
|
hostname: zoo2
|
|
|
|
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
|
2020-09-10 10:49:30 +00:00
|
|
|
expose:
|
|
|
|
- "2181"
|
|
|
|
- "2888"
|
|
|
|
- "3888"
|
|
|
|
ports:
|
|
|
|
- "2181"
|
2018-05-11 09:30:45 +00:00
|
|
|
networks:
|
|
|
|
- pinpoint
|
|
|
|
zoo3:
|
|
|
|
image: zookeeper:3.4
|
|
|
|
restart: always
|
|
|
|
hostname: zoo3
|
|
|
|
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
|
2020-09-10 10:49:30 +00:00
|
|
|
expose:
|
|
|
|
- "2181"
|
|
|
|
- "2888"
|
|
|
|
- "3888"
|
|
|
|
ports:
|
|
|
|
- "2181"
|
2018-05-11 09:30:45 +00:00
|
|
|
networks:
|
|
|
|
- pinpoint
|
|
|
|
networks:
|
|
|
|
pinpoint:
|
2020-09-10 10:49:30 +00:00
|
|
|
driver: bridge
|