Zack Williams | 998f442 | 2018-09-19 10:38:57 -0700 | [diff] [blame] | 1 | --- |
Joey Armstrong | 7a9af44 | 2024-01-03 19:26:36 -0500 | [diff] [blame] | 2 | # Copyright 2018-2024 Open Networking Foundation (ONF) and the ONF Contributors |
Zack Williams | 998f442 | 2018-09-19 10:38:57 -0700 | [diff] [blame] | 3 | # 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 | |
khenaidoo | abad44c | 2018-08-03 16:58:35 -0400 | [diff] [blame] | 17 | version: '2' |
| 18 | services: |
| 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: |
khenaidoo | 4c1a5bf | 2018-11-29 15:53:42 -0500 | [diff] [blame] | 32 | # image: "wurstmeister/kafka:1.1.0" |
| 33 | image: "wurstmeister/kafka:2.11-2.0.1" |
khenaidoo | abad44c | 2018-08-03 16:58:35 -0400 | [diff] [blame] | 34 | ports: |
| 35 | - 9092:9092 |
| 36 | environment: |
khenaidoo | b920354 | 2018-09-17 22:56:37 -0400 | [diff] [blame] | 37 | # KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://10.100.198.220:9092 |
Richard Jankowski | 55f75db | 2018-10-22 16:07:51 -0400 | [diff] [blame] | 38 | KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://${DOCKER_HOST_IP}:9092 |
khenaidoo | abad44c | 2018-08-03 16:58:35 -0400 | [diff] [blame] | 39 | 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 |