1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-30 09:16:58 +02:00
dockerfiles/zookeeper
2018-01-15 20:43:54 +08:00
..
arm upgrade zookeeper-arm to 3.4.11 2018-01-15 20:23:45 +08:00
docker-compose.yml add zookeeper 2017-09-13 17:31:46 +08:00
README.md add zookeeper 2017-09-13 17:31:46 +08:00
zookeeper.service add zookeeper.service 2018-01-15 20:43:54 +08:00

zookeeper

Apache ZooKeeper is an effort to develop and maintain an open-source server which enables highly reliable distributed coordination.

docker-compose.yml

zookeeper:
  image: zookeeper
  ports:
    - "2181:2181"
  volumes:
    - ./data:/data
    - ./datalog:/datalog
  restart: always

Standalone Mode

$ docker-compose up -d
$ docker-compose exec zookeeper zkCli.sh
>>> help
>>> create /hello world
>>> get /hello
>>> delete /hello
>>> quit

Click this to learn more.

Cluster Mode [TODO]