123456789101112131415161718192021222324252627282930 |
- version: '3.2'
- services:
- zookeeper:
- image: wurstmeister/zookeeper:latest
- deploy:
- replicas: 1
- restart_policy:
- condition: on-failure
- ports:
- - "2181:2181"
- networks:
- - kafka-tier
- kafka:
- image: wurstmeister/kafka:2.12-2.3.0
- deploy:
- replicas: 1
- restart_policy:
- condition: on-failure
- ports:
- - "9092:9092"
- networks:
- - kafka-tier
- environment:
- - KAFKA_ADVERTISED_HOST_NAME=[YOUR_HOST_NAME]
- - KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
- - ZOOKEEPER_IP=zookeeper
- networks:
- kafka-tier:
|