mirror of https://github.com/scribd/kafka-player
18 lines
388 B
YAML
18 lines
388 B
YAML
---
|
|
version: '3'
|
|
services:
|
|
kafka:
|
|
image: wurstmeister/kafka
|
|
ports:
|
|
- '9092:9092'
|
|
environment:
|
|
KAFKA_ADVERTISED_HOST_NAME: 127.0.0.1
|
|
KAFKA_CREATE_TOPICS: 'example:1:1'
|
|
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181'
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
zookeeper:
|
|
image: wurstmeister/zookeeper
|
|
ports:
|
|
- '2181:2181' |