kafka-stack-docker-compose icon indicating copy to clipboard operation
kafka-stack-docker-compose copied to clipboard

Auto-create Topics as part of docker-compose

Open CoinCoderBuffalo opened this issue 3 years ago • 2 comments

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

CoinCoderBuffalo avatar Oct 10 '22 18:10 CoinCoderBuffalo

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.

mitchell-h avatar Nov 08 '22 14:11 mitchell-h

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

OneCricketeer avatar Jul 30 '23 12:07 OneCricketeer