Add a simple docker-compose configuration for running Kafka locally

This commit is contained in:
R Tyler Croy 2019-11-24 19:38:44 -08:00
parent d5c43188b3
commit a233c62693
No known key found for this signature in database
GPG Key ID: E5C92681BEF6CEA2
1 changed files with 16 additions and 0 deletions

16
docker-compose.yml Normal file
View File

@ -0,0 +1,16 @@
---
version: '3'
services:
kafka:
image: wurstmeister/kafka
ports:
- "9092:9092"
environment:
KAFKA_ADVERTISED_HOST_NAME: localhost
KAFKA_CREATE_TOPICS: "test:1:1"
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
zookeeper:
image: wurstmeister/zookeeper
ports:
- "2181:2181"