From fd860a3285742c09904b172f32ad7e6829530247 Mon Sep 17 00:00:00 2001 From: kev Date: Wed, 1 May 2019 08:54:06 +0800 Subject: [PATCH] add kafka-rest --- README.md | 1 + kafka-rest/README.md | 9 +++++++++ kafka-rest/docker-compose.yml | 15 +++++++++++++++ 3 files changed, 25 insertions(+) create mode 100644 kafka-rest/README.md create mode 100644 kafka-rest/docker-compose.yml diff --git a/README.md b/README.md index 7a7ccec..b32925d 100644 --- a/README.md +++ b/README.md @@ -254,6 +254,7 @@ A collection of delicious docker recipes. - [x] tutum/builder - [x] browserless/chrome - [x] certbot +- [x] confluentinc/cp-kafka-rest - [x] streamsets/datacollector - [x] cachethq/docker - [x] puckel/docker-airflow diff --git a/kafka-rest/README.md b/kafka-rest/README.md new file mode 100644 index 0000000..a71ddc7 --- /dev/null +++ b/kafka-rest/README.md @@ -0,0 +1,9 @@ +kafka-rest +========== + +[The Confluent REST Proxy][1] provides a RESTful interface to a Kafka cluster, +making it easy to produce and consume messages, view the state of the cluster, +and perform administrative actions without using the native Kafka protocol or +clients. + +[1]: https://github.com/confluentinc/kafka-rest diff --git a/kafka-rest/docker-compose.yml b/kafka-rest/docker-compose.yml new file mode 100644 index 0000000..504cef4 --- /dev/null +++ b/kafka-rest/docker-compose.yml @@ -0,0 +1,15 @@ +kafka-rest: + image: confluentinc/cp-kafka-rest + ports: + - "8082:8082" + environment: + - KAFKA_REST_ZOOKEEPER_CONNECT=zookeeper1:2181,zookeeper2:2181,zookeeper3:2181 + - KAFKA_REST_BOOTSTRAP_SERVERS=kafka1:9092,kafka2:9092,kafka3:9092 + extra_hosts: + - zookeeper1:10.0.0.21 + - zookeeper2:10.0.0.22 + - zookeeper3:10.0.0.23 + - kafka1:10.0.0.21 + - kafka2:10.0.0.22 + - kafka3:10.0.0.23 + restart: unless-stopped