-
-
Notifications
You must be signed in to change notification settings - Fork 212
Docs: Add compose example using confluent-local docker image #821
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| environment: | ||
| # Normally you do not have to specify all these environment variables, but we are doing it to make kafka-ui work | ||
| # as the defaults are all localhost instead of a docker compose service name | ||
| # See: Defaults https://github.com/confluentinc/kafka-images/blob/master/local/include/etc/confluent/docker/configureDefaults |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn't find a way to "hack" docker compose to treat kafka0 interactions from the other services as localhost (the default env vars in the image). So I ended up just overriding all ENV vars that had localhost in it that were required for Kafka UI and init kafka topics to work.
|
Hi @scprek could you elaborate please, what does this compose add/solve? From your original discussion, it seems that you're interested in a kraft-enabled kafka instance, which is, well, most of the compose examples present in documentation/compose are about. |
Hi yes I can elaborate, I wanted a way to use There's a difference between enabling kraft in a Kafka image and using the Kraft/optimized image See: https://docs.confluent.io/platform/current/installation/docker/image-reference.html#ak-images |
Resolves /discussions/818
What changes did you make? (Give an overview)
Is there anything you'd like reviewers to focus on?
How Has This Been Tested? (put an "x" (case-sensitive!) next to an item)
Checklist (put an "x" (case-sensitive!) next to all the items, otherwise the build will fail)
Check out Contributing and Code of Conduct
A picture of a cute animal (not mandatory but encouraged)