Skip to content

fabiofarina/kafka-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kafka-docker

Dockerfile for Apache Kafka

The image is available directly from https://index.docker.io

##Pre-Requisites

  • install fig http://www.fig.sh/install.html
  • modify the KAFKA_ADVERTISED_HOST_NAME in fig.yml to match your docker host IP (Note: Do not use localhost or 127.0.0.1 as the host ip if you want to run multiple brokers.)
  • if you want to customise any Kafka parameters, simply add them as environment variables in fig.yml, e.g. in order to increase the message.max.bytes parameter set the environment to KAFKA_MESSAGE_MAX_BYTES: 2000000. To turn off automatic topic creation set KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'false'

##Usage

Start a cluster:

  • fig up -d

Add more brokers:

  • fig scale kafka=3

Destroy a cluster:

  • fig stop

##Tutorial

http://wurstmeister.github.io/kafka-docker/

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%