Add a simple docker-compose configuration for running Kafka locally
This commit is contained in:
parent
d5c43188b3
commit
a233c62693
|
@ -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"
|
Loading…
Reference in New Issue