Skip to content

lmarinve/kafka-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kafka Docker

Install Docker and Docker Compose

https://docs.docker.com/compose/install/

// Clone Kafka git project

git clone https://github.com/atlanticwave-sdx/kafka-docker

cd kafka-docker

Environment Variables

Name Type Description Example
KRAFT_CONTAINER_HOST_NAME string Hostname for the running container as the Kafka listener kafka
KRAFT_CREATE_TOPICS []string Comma separated list of topics to be created post server setup topic-a,topic-b,topic-c
KRAFT_PARTITIONS_PER_TOPIC int Number of partitions per topic 3

Create docker image

./dckbuild.sh

vim docker-compose.yml

// Optional - Scale the cluster by adding more brokers

docker-compose scale kafka=3

Start Docker compose

docker-compose up -d

//Check the proceses running:

docker-compose ps

// Destroy the cluster when you are done with it

docker-compose stop

Infraestructure

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published