https://github.com/nodefluent/kafka-rest
NOTE: the goal of this project is to mimic confluent/kafka-rest-proxy to offer a faster interface to topic data for applications like kafka-topics-ui, as kafka-rest-proxy troubles with larger message payloads or a large amount of messages on the topic.
If you want to customize any Kafka REST parameters, simply add them as environment variables, e.g.:
KAFKA_REST_HTTP_PORT: 8082.KAFKA_REST_DEBUG: "all".KAFKA_REST_CONSUMER_GROUP_ID: "kafka-rest-consumer-group".The full list and descriptions of config parameters can be found here.
Check out our docker compose example:
---
version: "2"
services:
zookeeper:
image: wurstmeister/zookeeper:latest
ports:
- 2181:2181
kafka:
image: wurstmeister/kafka:0.10.2.1
ports:
- "9092:9092"
links:
- zookeeper
depends_on:
- zookeeper
environment:
KAFKA_BROKER_ID: 1
KAFKA_PORT: 9092
KAFKA_ADVERTISED_HOST_NAME: "kafka"
KAFKA_ADVERTISED_LISTENERS: "PLAINTEXT://kafka:9092"
KAFKA_LISTENERS: "PLAINTEXT://:9092"
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_CREATE_TOPICS: "test:1:1"
KAFKA_AUTO_CREATE_TOPICS_ENABLE: "true"
kafka-rest:
image: nodefluent/kafka-rest
ports:
- 8082:8082
links:
- kafka
- zookeeper
depends_on:
- kafka
- zookeeper
environment:
# DEBUG: "*"
KAFKA_REST_DEBUG: "all"
KAFKA_REST_HTTP_PORT: 8082
KAFKA_REST_CONSUMER_METADATA_BROKER_LIST: "kafka:9092"
KAFKA_REST_PRODUCER_METADATA_BROKER_LIST: "kafka:9092"
kafka-rest-ui:
image: nodefluent/kafka-rest-ui
ports:
- 8000:8000
links:
- kafka-rest
depends_on:
- kafka-rest
environment:
DEBUG: "*"
REACT_APP_KAFKA_REST_URL: "http://kafka-rest:8082/"
REACT_APP_TIMEOUT: "3000"
PROXY: "yes"
Content type
Image
Digest
Size
305.2 MB
Last updated
almost 9 years ago
docker pull nodefluent/kafka-rest