2018-07-27 20:55:18 +02:00
|
|
|
zookeeper:
|
|
|
|
image: easypi/zookeeper-arm
|
|
|
|
ports:
|
|
|
|
- "2181:2181"
|
|
|
|
volumes:
|
|
|
|
- ./data/zookeeper/data:/data
|
|
|
|
- ./data/zookeeper/datalog:/datalog
|
|
|
|
restart: always
|
|
|
|
|
|
|
|
kafka:
|
|
|
|
image: easypi/kafka-arm
|
|
|
|
ports:
|
|
|
|
- "9092:9092"
|
|
|
|
hostname: kafka
|
|
|
|
volumes:
|
|
|
|
- ./data/kafka:/kafka
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
environment:
|
|
|
|
- KAFKA_ADVERTISED_HOST_NAME=kafka
|
|
|
|
- KAFKA_ADVERTISED_PORT=9092
|
|
|
|
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
|
|
|
|
links:
|
|
|
|
- zookeeper
|
|
|
|
restart: always
|
2018-07-28 04:51:01 +02:00
|
|
|
|
|
|
|
kafka-manager:
|
|
|
|
image: easypi/kafka-manager-arm
|
|
|
|
ports:
|
|
|
|
- "9000:9000"
|
|
|
|
environment:
|
|
|
|
- ZK_HOSTS=zookeeper:2181
|
|
|
|
- KAFKA_MANAGER_AUTH_ENABLED=true
|
|
|
|
- KAFKA_MANAGER_USERNAME=admin
|
|
|
|
- KAFKA_MANAGER_PASSWORD=admin
|
|
|
|
links:
|
|
|
|
- zookeeper
|
|
|
|
- kafka
|
|
|
|
restart: always
|