Skip to content

sahansera/kafka-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

✉️ Kafka on Docker

A quick way to get a local Kafka instance up and running with Docker.

Related blog post: https://sahansera.dev/setting-up-kafka-locally-for-testing/

Usage

Run at the root:

docker-compose up -d

Producer

docker exec --interactive --tty broker \
kafka-console-producer --bootstrap-server localhost:9092 \
                       --topic example-topic

Consumer

docker exec --interactive --tty broker \
kafka-console-consumer --bootstrap-server localhost:9092 \
                       --topic example-topic \
                       --from-beginning

About

✉️ A quick way to get a local Kafka instance up and running with Docker

Topics

Resources

License

Stars

Watchers

Forks