-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
35 lines (32 loc) · 1.11 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
version: '3.8'
services:
kafka0:
image: 'bitnami/kafka:3.6.1'
container_name: kafka
ports:
- "9092:19092"
environment:
- KAFKA_CFG_NODE_ID=0
- KAFKA_CFG_BROKER_ID=0
- KAFKA_KRAFT_CLUSTER_ID=S40B8iVtR0umuTyuM1eLjA
- KAFKA_CFG_PROCESS_ROLES=broker,controller
- KAFKA_CFG_CONTROLLER_QUORUM_VOTERS=0@kafka0:9093
- KAFKA_CFG_LISTENERS=PLAINTEXT://:9092,CONNECTIONS_FROM_HOST://:19092,CONTROLLER://:9093
- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://kafka0:9092,CONNECTIONS_FROM_HOST://localhost:9092
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT,CONNECTIONS_FROM_HOST:PLAINTEXT
- KAFKA_CFG_CONTROLLER_LISTENER_NAMES=CONTROLLER
- KAFKA_CFG_INTER_BROKER_LISTENER_NAME=PLAINTEXT
volumes:
- kafka_data:/bitnami/kafka
kafka-ui:
image: 'provectuslabs/kafka-ui:latest'
container_name: kafka-ui
ports:
- "8080:8080"
environment:
- KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS=kafka0:9092
- KAFKA_CLUSTERS_0_NAME=S40B8iVtR0umuTyuM1eLjA
depends_on:
- kafka0
volumes:
kafka_data: