Kafka with Kafka-ui setup for development via docker and docker compose.
This docker composes uses minimal default images provided by https://hub.docker.com/r/bitnami/kafka/ and https://github.com/provectus/kafka-ui. Any additional configuration must be added manually to docker-compose.yml
.
- create kafka-ui configuration file
./kui/config.yaml
with the following content:
kafka:
clusters:
-
name: local
bootstrapServers: kafka:9092
# schemaRegistry: http://localhost:8085
# schemaRegistryAuth:
# username: username
# password: password
# schemaNameTemplate: "%s-value"
# metrics:
# port: 9997
# type: JMX
-
Start
kafka
andkafka-ui
containers using the following script: -
browse to
localhost:16931
to access Kafka UI dashboard.
./run.sh
docker compose down -v