blob: dac921600b54ecfd04292d24b06ee1c754f88cc4 [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:
khenaidoo4c1a5bf2018-11-29 15:53:42 -050031# image: "wurstmeister/kafka:1.1.0"
32 image: "wurstmeister/kafka:2.11-2.0.1"
khenaidooabad44c2018-08-03 16:58:35 -040033 ports:
34 - 9092:9092
35 environment:
khenaidoob9203542018-09-17 22:56:37 -040036# KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://10.100.198.220:9092
Richard Jankowski55f75db2018-10-22 16:07:51 -040037 KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://${DOCKER_HOST_IP}:9092
khenaidooabad44c2018-08-03 16:58:35 -040038 KAFKA_LISTENERS: PLAINTEXT://:9092
39# KAFKA_ADVERTISED_HOST_NAME: 10.100.198.220
40 KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
41 KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true'
42 SERVICE_9092_NAME: "kafka"
43 volumes:
44 - /var/run/docker.sock:/var/run/docker.sock