Skip to content

Instantly share code, notes, and snippets.

@dvainrub
Created June 6, 2019 10:46
Show Gist options
  • Save dvainrub/6f4c6a2e8b1e31966b775c272fac61c1 to your computer and use it in GitHub Desktop.
Save dvainrub/6f4c6a2e8b1e31966b775c272fac61c1 to your computer and use it in GitHub Desktop.
> git clone https://github.com/wurstmeister/kafka-docker.git
> cd kafka-docker
# Update KAFKA_ADVERTISED_HOST_NAME inside 'docker-compose.yml',
# For example, set it to 172.17.0.1
> vim docker-compose.yml
> docker-compose up -d
# Optional - Scale the cluster by adding more brokers (Will start a single zookeeper instance)
> docker-compose scale kafka=3
# You can check the proceses running with:
> docker-compose ps
# Destroy the cluster when you are done with it
> docker-compose stop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment