version: '3'
services:
zookeeper:
image: wurstmeister/zookeeper
ports:
- "2181:2181"
kafka:
image: wurstmeister/kafka
ports:
- "9092:9092"
environment:
KAFKA_CREATE_TOPICS: "test:1:1"
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
volumes:
- /var/run/docker.sock:/var/run/docker.sock
producer:
image: taion809/kafka-cli:2.2.0
command: kafka-console-producer.sh --broker-list kafka:9092 --topic test
links:
- kafka
consumer:
image: taion809/kafka-cli:2.2.0
command: kafka-console-consumer.sh --bootstrap-server kafka:9092 --topic test --from-beginning
links:
- kafka
-
Notifications
You must be signed in to change notification settings - Fork 2
kafka bin directory as a docker container
License
taion809/kafka-cli
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
kafka bin directory as a docker container
Topics
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published