Last active
December 15, 2022 16:35
-
-
Save Hakky54/65f3ff8a1cdb092fdae50d409f614133 to your computer and use it in GitHub Desktop.
Zookeeper Kafka Schemaregistry in Docker
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.9" | |
services: | |
zookeeper: | |
image: confluentinc/cp-zookeeper:7.2.1 | |
environment: | |
ZOOKEEPER_CLIENT_PORT: 2181 | |
ZOOKEEPER_TICK_TIME: 2000 | |
kafka: | |
image: confluentinc/cp-kafka:7.2.1 | |
depends_on: | |
- zookeeper | |
ports: | |
- "29092:29092" | |
environment: | |
KAFKA_BROKER_ID: -1 | |
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 | |
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092,PLAINTEXT_HOST://localhost:29092 | |
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT | |
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT | |
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 | |
schemaregistry: | |
image: confluentinc/cp-schema-registry:7.2.1 | |
restart: always | |
depends_on: | |
- zookeeper | |
- kafka | |
environment: | |
- SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL=zookeeper:2181 | |
- SCHEMA_REGISTRY_HOST_NAME=schemaregistry | |
- SCHEMA_REGISTRY_LISTENERS=http://0.0.0.0:8081 | |
- SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS=PLAINTEXT://kafka:9092 | |
ports: | |
- "8081:8081" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment