Skip to content

Instantly share code, notes, and snippets.

@NitinRanjan
Last active August 19, 2018 21:40
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/5e6c3e13908289df0c60f85efae72caf to your computer and use it in GitHub Desktop.
Save NitinRanjan/5e6c3e13908289df0c60f85efae72caf to your computer and use it in GitHub Desktop.
version: '3.1'
services:
zoo1:
image: zookeeper:latest
restart: always
hostname: zoo1
ports:
- 2181:2181
- 2888:2888
- 3888:3888
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOO_MY_ID: 1
ZOO_SERVERS: server.1=0.0.0.0:2888:3888 server.2=server2IP: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