title: kafka topic configuration using properties file
body: <p>I want to configure Kafka with some topics and their unique retention settings. so when I start Kafka it will load the server.properties file with those settings.</p>
  
  <p>The only way I found was by starting Kafka, and then start and configure topics using <code>kafka-topics.sh</code> script.</p>
  
  <p>Example:</p>
  
  <pre><code>bin/kafka-topics.sh --zookeeper zk.yoursite.com --alter --topic as-access --config retention.ms=86400000
  </code></pre>
  
  <p>I am using Kafka over docker, so instead of setting the entry point to be the actual script that start Kafka, I need to create my own script which will start Kafka and run some shell commands to configure those topics.
  Also if I need to create those topics on my own, I need to start and create some logic regarding topics which already exist. and I prefer not to go that road.</p>