Zack Williams | 998f442 | 2018-09-19 10:38:57 -0700 | [diff] [blame] | 1 | --- |
| 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 | |
khenaidoo | abad44c | 2018-08-03 16:58:35 -0400 | [diff] [blame] | 16 | version: '2' |
| 17 | services: |
| 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: |
khenaidoo | b920354 | 2018-09-17 22:56:37 -0400 | [diff] [blame] | 31 | image: "wurstmeister/kafka:1.1.0" |
khenaidoo | abad44c | 2018-08-03 16:58:35 -0400 | [diff] [blame] | 32 | ports: |
| 33 | - 9092:9092 |
| 34 | environment: |
khenaidoo | b920354 | 2018-09-17 22:56:37 -0400 | [diff] [blame] | 35 | # KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://10.100.198.220:9092 |
Richard Jankowski | 55f75db | 2018-10-22 16:07:51 -0400 | [diff] [blame] | 36 | KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://${DOCKER_HOST_IP}:9092 |
khenaidoo | abad44c | 2018-08-03 16:58:35 -0400 | [diff] [blame] | 37 | 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 |