kafka-stack-docker-compose
kafka-stack-docker-compose copied to clipboard
Auto-create Topics as part of docker-compose
Is there a variable that can be set in docker-compose to auto create topics? I don't see anything in the documentation.
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.
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