blob: 30eea0a7f14ec12a85cdc802e24a6b61f96624ba [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:1.1.0"
ports:
- 9092:9092
environment:
# KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://10.100.198.220:9092
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://10.176.230.190: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