blob: 2cad1b8c4766e8488a73008294eb38ff9376f8dc [file] [log] [blame]
version: '2'
services:
#
# Single-node zookeeper service
#
zookeeper:
image: "wurstmeister/zookeeper:latest"
ports:
- 2181:2181
environment:
SERVICE_2181_NAME: "zookeeper"
#
# Single-node kafka service
#
kafka:
image: "wurstmeister/kafka:latest"
ports:
- 9092:9092
environment:
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://10.100.198.220:9092
KAFKA_LISTENERS: PLAINTEXT://:9092
# KAFKA_ADVERTISED_HOST_NAME: 10.100.198.220
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true'
SERVICE_9092_NAME: "kafka"
volumes:
- /var/run/docker.sock:/var/run/docker.sock