Created
May 28, 2019 06:46
-
-
Save s4kibs4mi/655adaf90ff2ea60ce19d57b63bbb1e1 to your computer and use it in GitHub Desktop.
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.1' | |
services: | |
zoo1: | |
image: zookeeper:3.4.9 | |
hostname: zoo1 | |
ports: | |
- "2181:2181" | |
environment: | |
ZOO_MY_ID: 1 | |
ZOO_PORT: 2181 | |
ZOO_SERVERS: server.1=zoo1:2888:3888 | |
volumes: | |
- ./storage/zoo1/data:/data | |
- ./storage/zoo1/datalog:/datalog | |
kafka1: | |
image: confluentinc/cp-kafka:5.2.1 | |
hostname: kafka1 | |
ports: | |
- "9092:9092" | |
environment: | |
KAFKA_ADVERTISED_LISTENERS: LISTENER_DOCKER_INTERNAL://kafka1:19092,LISTENER_DOCKER_EXTERNAL://${DOCKER_HOST_IP:-127.0.0.1}:9092 | |
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: LISTENER_DOCKER_INTERNAL:PLAINTEXT,LISTENER_DOCKER_EXTERNAL:PLAINTEXT | |
KAFKA_INTER_BROKER_LISTENER_NAME: LISTENER_DOCKER_INTERNAL | |
KAFKA_ZOOKEEPER_CONNECT: "zoo1:2181" | |
KAFKA_BROKER_ID: 1 | |
KAFKA_LOG4J_LOGGERS: "kafka.controller=INFO,kafka.producer.async.DefaultEventHandler=INFO,state.change.logger=INFO" | |
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 | |
volumes: | |
- ./storage/kafka1/data:/var/lib/kafka/data | |
depends_on: | |
- zoo1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment