Instantly share code, notes, and snippets.

@NitinRanjan NitinRanjan/zoo2.yml
Created Aug 19, 2018

Embed
What would you like to do?
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