-
-
Save anak10thn/cda6fbb187f03c219d981f78e6d50bf1 to your computer and use it in GitHub Desktop.
Kafka REST proxy with Docker compose. Everything required to get Confluent REST proxy docker images working so you can post messages to consumers with curl etc
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.5' | |
networks: | |
default: | |
name: kafka-net | |
services: | |
zookeeper: | |
image: confluentinc/cp-zookeeper:4.1.1 | |
hostname: zookeeper | |
ports: | |
- "32181:32181" | |
environment: | |
ZOOKEEPER_CLIENT_PORT: 32181 | |
ZOOKEEPER_TICK_TIME: 2000 | |
ZOOKEEPER_SYNC_LIMIT: 2 | |
kafka: | |
image: confluentinc/cp-kafka:4.1.1 | |
hostname: kafka | |
ports: | |
- "29092:29092" | |
depends_on: | |
- zookeeper | |
environment: | |
KAFKA_BROKER_ID: 1 | |
KAFKA_ZOOKEEPER_CONNECT: zookeeper:32181 | |
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:29092 | |
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 | |
schema-registry: | |
image: confluentinc/cp-schema-registry:4.1.1 | |
hostname: schema-registry | |
ports: | |
- "38081:38081" | |
depends_on: | |
- kafka | |
environment: | |
SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL: zookeeper:32181 | |
SCHEMA_REGISTRY_HOST_NAME: schema-registry | |
SCHEMA_REGISTRY_LISTENERS: http://schema-registry:38081 | |
SCHEMA_REGISTRY_DEBUG: "true" | |
kafka-rest: | |
image: confluentinc/cp-kafka-rest:4.1.1 | |
hostname: kafka-rest | |
ports: | |
- "38082:38082" | |
depends_on: | |
- schema-registry | |
environment: | |
KAFKA_REST_ZOOKEEPER_CONNECT: zookeeper:32181 | |
KAFKA_REST_SCHEMA_REGISTRY_URL: schema-registry:38081 | |
KAFKA_REST_HOST_NAME: kafka-rest | |
KAFKA_REST_LISTENERS: http://kafka-rest:38082 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment