conduktor / kafka-stack-docker-compose

docker compose files to create a fully working kafka stack
Apache License 2.0
3.24k stars 1.25k forks source link

Auto-create Topics as part of docker-compose #116

Closed CoinCoderBuffalo closed 5 months ago

CoinCoderBuffalo commented 1 year ago

Is there a variable that can be set in docker-compose to auto create topics? I don't see anything in the documentation.

mitchell-h commented 1 year ago

By default auto.create.topics.enable is set to true. You should be able to simply start producing to a topic and kafka will create the topic.

OneCricketeer commented 1 year ago

The Confluent images don't support an environment variable for this, only the wurstmeister containers do.

Otherwise, you could use minikube instead, for example, and run Strimzi or Confluent Operator and create topics with kubernetes resource files rather than just variables