blob: 8681f7655ceba3ae38a6a3f06c334840641e93d7 [file] [log] [blame]
Zack Williams41513bf2018-07-07 20:08:35 -07001# Copyright 2017-present Open Networking Foundation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
Khen Nursimulu74c1ef02016-10-12 21:17:42 -040014version: '2'
15services:
16 #
17 # Single-node zookeeper service
18 #
19 zookeeper:
David K. Bainbridgebba65ff2018-01-19 09:26:09 -080020 image: "${REGISTRY}wurstmeister/zookeeper:${ZK_TAG:-latest}"
Khen Nursimulu74c1ef02016-10-12 21:17:42 -040021 ports:
22 - 2181:2181
23 environment:
24 SERVICE_2181_NAME: "zookeeper"
25 #
26 # Single-node kafka service
27 #
28 kafka:
David K. Bainbridgebba65ff2018-01-19 09:26:09 -080029 image: "${REGISTRY}wurstmeister/kafka:${KAFKA_TAG:-latest}"
Khen Nursimulu74c1ef02016-10-12 21:17:42 -040030 ports:
31 - 9092:9092
32 environment:
33 KAFKA_ADVERTISED_HOST_NAME: ${DOCKER_HOST_IP}
34 KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
35 KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true'
36 SERVICE_9092_NAME: "kafka"
37 volumes:
David K. Bainbridgebba65ff2018-01-19 09:26:09 -080038 - /var/run/docker.sock:/var/run/docker.sock