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