2018-12-27 15:55:51 +00:00
|
|
|
version: '2.2'
|
2017-05-19 18:54:05 +00:00
|
|
|
services:
|
|
|
|
zoo1:
|
2019-05-29 21:47:57 +00:00
|
|
|
image: zookeeper:3.4.12
|
2017-05-19 18:54:05 +00:00
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
ZOO_TICK_TIME: 500
|
|
|
|
ZOO_MY_ID: 1
|
|
|
|
ZOO_SERVERS: server.1=zoo1:2888:3888 server.2=zoo2:2888:3888 server.3=zoo3:2888:3888
|
|
|
|
|
|
|
|
zoo2:
|
2019-05-29 21:47:57 +00:00
|
|
|
image: zookeeper:3.4.12
|
2017-05-19 18:54:05 +00:00
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
ZOO_TICK_TIME: 500
|
|
|
|
ZOO_MY_ID: 2
|
|
|
|
ZOO_SERVERS: server.1=zoo1:2888:3888 server.2=zoo2:2888:3888 server.3=zoo3:2888:3888
|
|
|
|
|
|
|
|
zoo3:
|
2019-05-29 21:47:57 +00:00
|
|
|
image: zookeeper:3.4.12
|
2017-05-19 18:54:05 +00:00
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
ZOO_TICK_TIME: 500
|
|
|
|
ZOO_MY_ID: 3
|
|
|
|
ZOO_SERVERS: server.1=zoo1:2888:3888 server.2=zoo2:2888:3888 server.3=zoo3:2888:3888
|