Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- services:
- zookeeper:
- image: "confluentinc/cp-zookeeper:4.1.0"
- ports:
- - "2181:2181"
- expose:
- - "2181"
- environment:
- - ZOOKEEPER_CLIENT_PORT=2181
- kafka:
- image: "confluentinc/cp-kafka:4.1.0"
- hostname: kafka
- links:
- - zookeeper
- ports:
- - "9092:9092"
- expose:
- - "9092"
- environment:
- - KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
- - KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://zookeeper:9092
- - KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1
Add Comment
Please, Sign In to add comment