Cp-docker-images: How to create topics on docker container start-up?

Created on 17 Feb 2019  路  2Comments  路  Source: confluentinc/cp-docker-images

I'm using docker-compose to start zookeeper and Kafka using https://github.com/confluentinc/cp-docker-images/blob/5.1.1-post/examples/kafka-single-node/docker-compose.yml

Is there any way to create topics after Kafka starts running?

I'm looking for similar functionality provided by https://github.com/wurstmeister/kafka-docker#automatically-create-topics

Thanks

Most helpful comment

@pratapagiri have you seen this example?

All 2 comments

@pratapagiri have you seen this example?

@ybyzek,
Thanks for your suggestion. This works for me.

Was this page helpful?
0 / 5 - 0 ratings