1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-30 18:51:24 +00:00
dockerfiles/kafka-ui/docker-compose.yml

43 lines
965 B
YAML
Raw Normal View History

2023-03-01 08:33:17 +00:00
version: "3.8"
services:
2023-03-01 09:02:02 +00:00
zookeeper:
image: bitnami/zookeeper:3.8
ports:
- "2181:2181"
volumes:
- ./data/zookeeper:/bitnami/zookeeper
environment:
- ZOO_SERVER_ID=1
- ALLOW_ANONYMOUS_LOGIN=yes
restart: unless-stopped
2023-03-01 08:33:17 +00:00
kafka:
image: bitnami/kafka:3.4
ports:
- "9092:9092"
volumes:
2023-03-01 09:02:02 +00:00
- ./data/kafka:/bitnami/kafka
2023-03-01 08:33:17 +00:00
environment:
- KAFKA_BROKER_ID=1
2023-03-01 09:02:02 +00:00
- KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
- KAFKA_CFG_LISTENERS=PLAINTEXT://:9092
- KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092
2023-03-01 08:33:17 +00:00
- ALLOW_PLAINTEXT_LISTENER=yes
2023-03-01 09:02:02 +00:00
depends_on:
- zookeeper
2023-03-01 08:33:17 +00:00
restart: unless-stopped
kafka-ui:
image: provectuslabs/kafka-ui
ports:
- "8080:8080"
environment:
2023-03-01 09:02:02 +00:00
- KAFKA_CLUSTERS_0_NAME=local
- KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS=kafka:9092
# KAFKA_CLUSTERS_0_READONLY=true
2023-03-01 08:35:14 +00:00
depends_on:
- kafka
2023-03-01 08:33:17 +00:00
restart: unless-stopped