Created
June 6, 2019 10:46
-
-
Save dvainrub/6f4c6a2e8b1e31966b775c272fac61c1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> 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