Skip to content

Instantly share code, notes, and snippets.

@NitinRanjan
Created August 19, 2018 21:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NitinRanjan/0d29ac8e98a44667afa0f7442c0b8a77 to your computer and use it in GitHub Desktop.
Save NitinRanjan/0d29ac8e98a44667afa0f7442c0b8a77 to your computer and use it in GitHub Desktop.
version: '3.1'
services:
zoo2:
image: zookeeper:latest
restart: always
hostname: zoo2
ports:
- 2181:2181
- 2888:2888
- 3888:3888
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOO_MY_ID: 2
ZOO_SERVERS: server.1=server1IP:2888:3888 server.2=0.0.0.0:2888:3888 server.3=server3IP:2888:3888
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment