forked from kafka4beam/wolff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
39 lines (39 loc) · 1.26 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
version: '2'
services:
zookeeper:
image: wurstmeister/zookeeper
container_name: wolff-zk
ulimits:
nofile:
soft: 65536
hard: 65536
kafka_1:
depends_on:
- zookeeper
image: wurstmeister/kafka:2.13-2.7.0
ports:
- "9092:9092"
container_name: wolff-kafka-1
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_LISTENERS: DEFAULT://:9092,INTRA://:9093
KAFKA_ADVERTISED_LISTENERS: DEFAULT://localhost:9092,INTRA://wolff-kafka-1:9093,
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: DEFAULT:PLAINTEXT,INTRA:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: INTRA
KAFKA_CREATE_TOPICS: test-topic:1:1,test-topic-2:2:1,test-topic-3:1:1,
kafka_2:
depends_on:
- kafka_1
image: wurstmeister/kafka:2.13-2.7.0
ports:
- "9192:9092"
container_name: wolff-kafka-2
environment:
KAFKA_BROKER_ID: 2
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_LISTENERS: DEFAULT://:9092,INTRA://:9093
KAFKA_ADVERTISED_LISTENERS: DEFAULT://localhost:9192,INTRA://wolff-kafka-2:9093
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: DEFAULT:PLAINTEXT,INTRA:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: INTRA
KAFKA_CREATE_TOPICS: test-topic-r2:1:2