From 810ad9dbaa8553299a4516790a9f546a9b84905e Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期二, 08 七月 2025 16:16:26 +0800 Subject: [PATCH] 添加图层管理,修改权限管理 --- docker/docker-compose.yml | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 55 insertions(+), 0 deletions(-) diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml new file mode 100644 index 0000000..88e061c --- /dev/null +++ b/docker/docker-compose.yml @@ -0,0 +1,55 @@ +version: '3.8' +services: + # zookeeper + zookeeper: + image: zookeeper:3.4.9 + ports: + - 2181:2181 + # - 2888:2888 + # - 3888:3888 + volumes: + - ./zookeeper_data:/data + environment: + ZOO_MY_ID: 1 + ZOO_SERVERS: server.1=0.0.0.0:2888:3888 + networks: + - kafka_net + #kafka + kafka: + image: bitnami/kafka:3.4 + depends_on: + - zookeeper + ports: + - 9092:9092 + environment: + KAFKA_BROKER_ID: 1 + ALLOW_PLAINTEXT_LISTENER: "yes" + KAFKA_CFG_LISTENERS: PLAINTEXT://:9092 + KAFKA_CFG_ZOOKEEPER_CONNECT: zookeeper:2181 + KAFKA_CFG_ADVERTISED_LISTENERS: PLAINTEXT://192.168.11.203:9092 + #KKAFKA_LISTENERS: PLAINTEXT://:9092 + #AFKA_ADVERTISED_LISTENERS: PLAINTEXT://192.168.11.203:9092 + #KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 + #KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'true' + volumes: + - ./kafka_data:/bitnami/kafka + # 灏嗗涓绘満鐨凞ocker濂楁帴瀛楁枃浠舵寕杞藉埌瀹瑰櫒鍐呴儴 + - /var/run/docker.sock:/var/run/docker.sock + networks: + - kafka_net + # kafka-ui + kafka-ui: + image: provectuslabs/kafka-ui + depends_on: + - kafka + ports: + - 8081:8080 + environment: + DYNAMIC_CONFIG_ENABLED: true + #KAFKA_CLUSTERS_0_NAME: local + #KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS: kafka:9092 + networks: + - kafka_net +networks: + kafka_net: + driver: bridge -- Gitblit v1.9.3