Created
August 22, 2018 13:24
-
-
Save rosscdh/294910e70930a31b4036b6cbd546acfc to your computer and use it in GitHub Desktop.
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: '3' | |
| services: | |
| zookeeper: | |
| image: confluent/zookeeper:latest | |
| ports: | |
| - "2181:2181" | |
| # volumes: | |
| # - ./config/kafka/zk.properties:/etc/kafka/zookeeper.properties | |
| kafka: | |
| image: confluent/kafka:0.10.0.0-cp1 | |
| environment: | |
| #- KAFKA_ADVERTISED_HOST_NAME= | |
| - KAFKA_BROKER_ID=1 | |
| - KAFKA_ZOOKEEPER_CONNECT=zookeeper | |
| ports: | |
| - 9092:9092 | |
| volumes: | |
| - ./config/kafka/server.properties:/etc/kafka/server.properties | |
| links: | |
| - zookeeper | |
| depends_on: | |
| - zookeeper | |
| schema-registry: | |
| image: confluent/schema-registry:latest | |
| ports: | |
| - 8081:8081 | |
| volumes: | |
| - ./config/kafka/schema-registry.properties:/etc/schema-registry/schema-registry.properties | |
| links: | |
| - zookeeper | |
| - kafka | |
| depends_on: | |
| - zookeeper | |
| - kafka | |
| rest-proxy: | |
| image: confluent/rest-proxy:latest | |
| ports: | |
| - 8082:8082 | |
| volumes: | |
| - ./config/kafka/kafka-rest.properties:/etc/kafka-rest/kafka-rest.properties | |
| links: | |
| - zookeeper | |
| - kafka | |
| - schema-registry | |
| depends_on: | |
| - zookeeper | |
| - kafka | |
| - schema-registry | |
| kafka-topics-ui: | |
| image: landoop/kafka-topics-ui | |
| environment: | |
| # yes localhost as its a client side app outsite of the docker network on your host | |
| - KAFKA_REST_PROXY_URL=http://rest-proxy:8082 | |
| - PROXY=true | |
| ports: | |
| - 8000:8000 | |
| links: | |
| - rest-proxy | |
| depends_on: | |
| - rest-proxy | |
| kafdrop: | |
| image: thomsch98/kafdrop | |
| environment: | |
| # yes localhost as its a client side app outsite of the docker network on your host | |
| - ZK_HOSTS=zookeeper:2181 | |
| - LISTEN=9000 | |
| ports: | |
| - 8001:9000 | |
| links: | |
| - zookeeper | |
| depends_on: | |
| - zookeeper | |
| cli: | |
| image: taion809/kafka-cli:0.10.2.0 | |
| command: kafka-topics.sh --list --zookeeper zookeeper:2181 | |
| stdin_open: true | |
| tty: true | |
| links: | |
| - zookeeper | |
| depends_on: | |
| - zookeeper |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Kafka
Running, this will take time to download and startup
You can then access various ui
list topics
More commands: https://kafka.apache.org/quickstart