Created
June 14, 2021 06:35
-
-
Save m-cakir/b76b80a6051dbc50561baa77929684ca to your computer and use it in GitHub Desktop.
Kafka & KafDrop 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: '2' | |
services: | |
zookeeper: | |
image: "wurstmeister/zookeeper" | |
ports: | |
- "2181:2181" | |
broker: | |
image: "wurstmeister/kafka" | |
ports: | |
- "9092:9092" | |
environment: | |
KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181" | |
KAFKA_LISTENERS: "INTERNAL://:29092,EXTERNAL://:9092" | |
KAFKA_ADVERTISED_LISTENERS: "INTERNAL://broker:29092,EXTERNAL://localhost:9092" | |
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: "INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT" | |
KAFKA_INTER_BROKER_LISTENER_NAME: "INTERNAL" | |
KAFKA_CREATE_TOPICS: "my-topic:1:1" | |
depends_on: | |
- zookeeper | |
broker_ui: | |
image: "obsidiandynamics/kafdrop" | |
ports: | |
- "9000:9000" | |
environment: | |
KAFKA_BROKERCONNECT: "broker:29092" | |
JVM_OPTS: "-Xms16M -Xmx48M -Xss180K -XX:-TieredCompilation -XX:+UseStringDeduplication -noverify" | |
depends_on: | |
- broker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment