Created
April 26, 2020 18:32
-
-
Save sinujohn/a4c2670983ad7763b965dc7499da5fed to your computer and use it in GitHub Desktop.
Docker with Kafka and Kafdrop
This file contains 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' | |
services: | |
zookeeper: | |
image: wurstmeister/zookeeper | |
ports: | |
- 2181:2181 | |
kafka: | |
image: wurstmeister/kafka | |
ports: | |
- 9092:9092 | |
environment: | |
KAFKA_LISTENERS: "INTERNAL://:29092,EXTERNAL://:9092" | |
KAFKA_ADVERTISED_LISTENERS: "INTERNAL://kafka:29092,EXTERNAL://localhost:9092" | |
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: "INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT" | |
KAFKA_INTER_BROKER_LISTENER_NAME: "INTERNAL" | |
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 | |
depends_on: | |
- zookeeper | |
kafdrop: | |
image: obsidiandynamics/kafdrop | |
restart: "no" | |
ports: | |
- 9000:9000 | |
environment: | |
KAFKA_BROKERCONNECT: kafka:29092 | |
JVM_OPTS: "-Xms16M -Xmx48M -Xss180K -XX:-TieredCompilation -XX:+UseStringDeduplication -noverify" | |
depends_on: | |
- kafka |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment