A pre-configured Apache Kafka container with multi-listener setup for development and testing. This image runs Kafka 4.0.0+ with KRaft mode (no ZooKeeper required).
localhost:9092kafka:29092# Pull the image
docker pull dawsonlp/kafka:latest
# Start with Docker Compose
docker compose up -d
Connect to Kafka from your host machine:
kafka-topics --bootstrap-server localhost:9092 --list
Other containers can connect to Kafka using this configuration:
services:
your-app:
# Your application configuration...
environment:
- KAFKA_BOOTSTRAP_SERVERS=kafka:29092
networks:
- kafka-network
networks:
kafka-network:
external: true
name: kafka-network
For complete documentation, including Docker Compose examples, Python code samples, and local Kafka tools setup, visit the GitHub repository.
Content type
Image
Digest
sha256:549f1863e…
Size
239 MB
Last updated
about 2 months ago
docker pull dawsonlp/kafka