You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
595 B
19 lines
595 B
version: '2'
|
|
services:
|
|
zookeeper:
|
|
image: wurstmeister/zookeeper
|
|
ports:
|
|
- "2181:2181"
|
|
kafka:
|
|
build: .
|
|
ports:
|
|
- "9094:9094"
|
|
environment:
|
|
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
|
|
KAFKA_LISTENERS: INTERNAL://kafka:9092,OUTSIDE://kafka:9094
|
|
KAFKA_ADVERTISED_LISTENERS: INTERNAL://kafka:9092,OUTSIDE://localhost:9094
|
|
KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL
|
|
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL:PLAINTEXT,OUTSIDE:PLAINTEXT
|
|
KAFKA_CREATE_TOPICS: "abcd:2:1"
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|