ches / docker-kafka

Apache Kafka on Docker
https://hub.docker.com/r/ches/kafka/
146 stars 137 forks source link

Multiple zookeeper #7

Open hieutrtr opened 9 years ago

hieutrtr commented 9 years ago

Hi Ches,

Do you have any ideas about multiple zookeeper using docker. Could you suggest some solution to do that.

Thanks and Best Regards, Hieu Tran Trung.

xrl commented 7 years ago

Yes, you can set ZOOKEEPER_CONNECTION_STRING. There's an example in the README, but essentially:

docker run -e ZOOKEEPER_CONNECTION_STRING=zk-1:2181,zk-2:2181 $REST_OF_RUN_CMD

should get you going.