Skip to content

kafka cluster plus ZK, all neatly packed in a compose file

Notifications You must be signed in to change notification settings

gabriel-tincu/kafka-docker

Repository files navigation

kafka docker compose file for 3 (or more if you want) brokers and a ZK instance

Running

  • get docker
  • get docker-compose
  • make sure you export HOST_IP as an env var containing your host actual ip (for the broker announce to go smoothly)
  • run it with docker-compose -d -f docker-compose.yml up
  • work
  • kill it with docker-compose -f docker-compose.yml down

Docker swarm

Read about docker swarm and create a node on the host machine In theory, you should change the compose file version to 3.4 and you should be able to run it with docker stack deploy -c docker-compose.yml kafka, and when you're done kill it with docker stack rm kafka

About

kafka cluster plus ZK, all neatly packed in a compose file

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages