Created
May 2, 2022 06:48
-
-
Save chaudharisuresh997/51a056ed32bff533b1a088fe62d80abf to your computer and use it in GitHub Desktop.
Kafka and zookeeper YAML
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" | |
services: | |
zookeeper: | |
image: 'bitnami/zookeeper:latest' | |
ports: | |
- '2181:2181' | |
environment: | |
- ALLOW_ANONYMOUS_LOGIN=yes | |
kafka: | |
hostname: kafka | |
image: 'bitnami/kafka:latest' | |
ports: | |
- '9092:9092' | |
environment: | |
- KAFKA_BROKER_ID=1 | |
- KAFKA_LISTENERS=PLAINTEXT://:9092 | |
- KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://127.0.0.1:9092 | |
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181 | |
- ALLOW_PLAINTEXT_LISTENER=yes | |
volumes: | |
- /Users/sureshc1/Documents/Projects/config/kafkalocal/kafkastorage | |
depends_on: | |
- zookeeper |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment