- 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
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