kafka-example
README.MD
Kafka in Docker: single-node / cluster configurations
Based on article
Prerequisites
- Docker
- Kafka Tool
How to start Kafka in single-node configuration
cd single-node
docker compose up
How to start Kafka in cluster configuration
cd cluster
docker compose up
How to set up connection in Kafka Tool to single-node kafka
- Zookeeper Host: localhost
- Zookeeper Port: 22181
- Bootstrap servers: localhost:29092
How to set up connection in Kafka Tool to cluster Kafka
- Zookeeper Host: localhost
- Zookeeper Port: 22181
- Bootstrap servers: localhost:29092;localhost:39092
How to clean up created Docker containers
Run from folder where
was used:docker compose up
docker compose down
Описание
Kafka in Docker, single-node & cluster configurations