Created
March 22, 2019 01:57
-
-
Save bingooyong/4f0a796f2c1b1c97a0a8465134755d22 to your computer and use it in GitHub Desktop.
kafka-docker-compose.yml
This file contains hidden or 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
| version: '2' | |
| services: | |
| zookeeper: | |
| image: wurstmeister/zookeeper | |
| ports: | |
| - "2181:2181" | |
| kafka: | |
| image: wurstmeister/kafka:0.10.0.0 | |
| ports: | |
| - "9092:9092" | |
| environment: | |
| KAFKA_CREATE_TOPICS: "tencent-dev-topic-metrics:1:1" | |
| KAFKA_ADVERTISED_HOST_NAME: 192.168.99.1 | |
| KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 | |
| volumes: | |
| - /var/run/docker.sock:/var/run/docker.sock |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment