- Create the network :
$ docker network create --driver bridge kafka-net
- Create the folders :
$ mkdir -p {zookeeper,kafka}/{data,logs}
- Execute the docker compose :
$ docker-compose -f docker-compose.yml up -d
-
Access Kafka Manager : http://localhost:9000/.
-
Create a new cluster.
-
Name it as you like (Localtest for example).
-
IP : zookeeper:2181
-
Kafka version (corresponding here to the Kafka version inside the image : ches/kafka:0.10.2.1) : 0.10.2.1
And then create it.
This is done !
To stop the containers and remove them, run :
$ docker-compose -f docker-compose.yml stop && docker-compose -f docker-compose.yml rm -vf