This enables clients outside of docker network to connect, to test this you can use a tool like kafkacat (kcat). For example run on the docker compose host machine: > kafkacat -b localhost:29092 -L