blob: e339aa40279918964a464b7df1214999c3912886 [file] [log] [blame]
Zack Williams998f4422018-09-19 10:38:57 -07001---
2# Copyright 2018 the original author or authors.
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
khenaidooabad44c2018-08-03 16:58:35 -040016version: '2'
17services:
18 #
19 # Single-node zookeeper service
20 #
21 zookeeper:
22 image: "wurstmeister/zookeeper:latest"
23 ports:
24 - 2181:2181
25 environment:
26 SERVICE_2181_NAME: "zookeeper"
27 #
28 # Single-node kafka service
29 #
30 kafka:
khenaidoob9203542018-09-17 22:56:37 -040031 image: "wurstmeister/kafka:1.1.0"
khenaidooabad44c2018-08-03 16:58:35 -040032 ports:
33 - 9092:9092
34 environment:
khenaidoob9203542018-09-17 22:56:37 -040035# KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://10.100.198.220:9092
Richard Jankowski55f75db2018-10-22 16:07:51 -040036 KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://${DOCKER_HOST_IP}:9092
khenaidooabad44c2018-08-03 16:58:35 -040037 KAFKA_LISTENERS: PLAINTEXT://:9092
38# KAFKA_ADVERTISED_HOST_NAME: 10.100.198.220
39 KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
40 KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true'
41 SERVICE_9092_NAME: "kafka"
42 volumes:
43 - /var/run/docker.sock:/var/run/docker.sock