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

Set properties in files like server.properties and producer.properties #133

Closed BaileyHelfer closed 5 months ago

BaileyHelfer commented 1 year ago

When running kafka locally you can configure items in server.properties,consumer.properties and producer.properties. I need to configure the max_request_size in my producer.config but now sure how to do it running the kafka-single-zoo-single file. Some help on this would be very useful. Thank you.

OneCricketeer commented 1 year ago

The Confluent images setup brokers, not clients. You don't need a producer properties file on the brokers. The one that comes with Kafka isn't used for the broker.

Therefore, if you need a custom file, you'd mount it as a docker volume...

For the server.properties file, that's what all the environment variables are already going. https://docs.confluent.io/platform/current/installation/docker/config-reference.html#ak-configuration