-
Notifications
You must be signed in to change notification settings - Fork 0
/
kafka.yml
39 lines (38 loc) · 1.09 KB
/
kafka.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: "3.1"
services:
zookeeper:
image: "bitnami/zookeeper:3"
ports:
- "2181:2181"
volumes:
- "zookeeper_data:/bitnami"
environment:
- ZOO_ENABLE_AUTH=yes
- ZOO_SERVER_USERS=kafka
- ZOO_SERVER_PASSWORDS=kafka_password
kafka:
image: "bitnami/kafka:2"
ports:
- "9092:9092"
- '29092:29092'
volumes:
- "kafka_data:/bitnami"
environment:
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
- ALLOW_PLAINTEXT_LISTENER=yes
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
- KAFKA_CFG_LISTENERS=PLAINTEXT:https://:9092,PLAINTEXT_HOST:https://:29092
- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT:https://kafka:9092,PLAINTEXT_HOST:https://localhost:29092
- KAFKA_ZOOKEEPER_USER=kafka
- KAFKA_ZOOKEEPER_PASSWORD=kafka_password
- KAFKA_INTER_BROKER_USER=interuser
- KAFKA_INTER_BROKER_PASSWORD=interpassword
- KAFKA_BROKER_USER=ad
- KAFKA_BROKER_PASSWORD=pw
depends_on:
- zookeeper
volumes:
zookeeper_data:
driver: local
kafka_data:
driver: local