1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00
dockerfiles/zookeeper/README.md
2019-09-26 18:25:16 +08:00

842 B

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 zkServer.sh status
ZooKeeper JMX enabled by default
Using config: /conf/zoo.cfg
Mode: leader

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

Click this to learn more.

Cluster Mode [TODO]