To solve this, you can use a Python script I wrote that generates the docker-compose file: kafka-docker-composer. In this guide, we'll share more details about the installation, examples, use cases, and more. The tool requires a working Python 3 environment. (It has been tested with Python 3.8 - 3.11.)