Setup Kafka Zookeeper in Docker

Setting up Apache Kafka and Zookeeper in docker is easy thanks to popular DockerFiles like wurstmeister/kafka-docker. Let’s go through a quick setup of Kafka and Zookeeper in docker on a single node system. Prerequisites Linux System Git Docker Docker-compose Kafka and Zookeeper Start by cloning the repo: git clone https://github.com/wurstmeister/kafka-docker Then change to the kafka-docker directory: cd kafka-docker Now let’s edit the docker-compose.yml file. Change the Kafka Advertised Hostname to localhost: