blob: 09c562b76e1a54350e47dd7faa150d87a7ca9230 [file] [log] [blame]
Khen Nursimulu74c1ef02016-10-12 21:17:42 -04001version: '2'
2services:
3 #
4 # Single-node zookeeper service
5 #
6 zookeeper:
7 image: wurstmeister/zookeeper
8 ports:
9 - 2181:2181
10 environment:
11 SERVICE_2181_NAME: "zookeeper"
12 #
13 # Single-node kafka service
14 #
15 kafka:
16 image: wurstmeister/kafka
17 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:
25 - /var/run/docker.sock:/var/run/docker.sock