Skip to content

Instantly share code, notes, and snippets.

@autodidacticon
Last active May 19, 2017 10:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save autodidacticon/d0394d36f26b7b435369 to your computer and use it in GitHub Desktop.
Save autodidacticon/d0394d36f26b7b435369 to your computer and use it in GitHub Desktop.
docker - zookeeper, kafka, kafka-manager
zookeeper:
image: wurstmeister/zookeeper
ports:
- "32772:2181"
kafka:
image: wurstmeister/kafka:latest
ports:
- "9092"
links:
- zookeeper:zk
environment:
KAFKA_ADVERTISED_HOST_NAME: 192.168.99.100
KAFKA_CREATE_TOPICS: "model:1:1,route:1:1,track:1:1,identify:1:1"
KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true'
volumes:
- /var/run/docker.sock:/var/run/docker.sock
kafka-manager:
image: sheepkiller/kafka-manager
ports:
- "9000:9000"
links:
- zookeeper:zk
environment:
ZK_HOSTS: zk:2181
@lyw0149
Copy link

lyw0149 commented May 19, 2017

nice!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment