blob: 748a9c2081728ebacf9839e9d7f4c8e91e618da0 [file] [log] [blame]
Khen Nursimulu74c1ef02016-10-12 21:17:42 -04001version: '2'
2services:
3 #
4 # Single-node zookeeper service
5 #
6 zookeeper:
David K. Bainbridgebba65ff2018-01-19 09:26:09 -08007 image: "${REGISTRY}wurstmeister/zookeeper:${ZK_TAG:-latest}"
Khen Nursimulu74c1ef02016-10-12 21:17:42 -04008 ports:
9 - 2181:2181
10 environment:
11 SERVICE_2181_NAME: "zookeeper"
12 #
13 # Single-node kafka service
14 #
15 kafka:
David K. Bainbridgebba65ff2018-01-19 09:26:09 -080016 image: "${REGISTRY}wurstmeister/kafka:${KAFKA_TAG:-latest}"
Khen Nursimulu74c1ef02016-10-12 21:17:42 -040017 ports:
18 - 9092:9092
19 environment:
20 KAFKA_ADVERTISED_HOST_NAME: ${DOCKER_HOST_IP}
21 KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
22 KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true'
23 SERVICE_9092_NAME: "kafka"
24 volumes:
David K. Bainbridgebba65ff2018-01-19 09:26:09 -080025 - /var/run/docker.sock:/var/run/docker.sock