mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-24 08:52:31 +02:00
32 lines
915 B
YAML
32 lines
915 B
YAML
|
version: "3.8"
|
||
|
|
||
|
services:
|
||
|
|
||
|
kafka:
|
||
|
image: bitnami/kafka:3.4
|
||
|
ports:
|
||
|
- "9092:9092"
|
||
|
volumes:
|
||
|
- ./data:/bitnami/kafka
|
||
|
environment:
|
||
|
- KAFKA_BROKER_ID=1
|
||
|
- KAFKA_ENABLE_KRAFT=yes
|
||
|
- KAFKA_CFG_PROCESS_ROLES=broker,controller
|
||
|
- KAFKA_CFG_CONTROLLER_LISTENER_NAMES=CONTROLLER
|
||
|
- KAFKA_CFG_LISTENERS=PLAINTEXT://:9092,CONTROLLER://:9093
|
||
|
- KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT
|
||
|
- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://127.0.0.1:9092
|
||
|
- KAFKA_CFG_CONTROLLER_QUORUM_VOTERS=1@127.0.0.1:9093
|
||
|
- ALLOW_PLAINTEXT_LISTENER=yes
|
||
|
restart: unless-stopped
|
||
|
|
||
|
kafka-ui:
|
||
|
image: provectuslabs/kafka-ui
|
||
|
ports:
|
||
|
- "8080:8080"
|
||
|
environment:
|
||
|
- KAFKA_CLUSTERS_1_NAME=local
|
||
|
- KAFKA_CLUSTERS_1_BOOTSTRAPSERVERS=kafka:9092
|
||
|
# KAFKA_CLUSTERS_1_READONLY=true
|
||
|
restart: unless-stopped
|