企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
[TOC] 参考连接:[https://juejin.im/entry/5cbfe36b6fb9a032036187aa](https://juejin.im/entry/5cbfe36b6fb9a032036187aa) ## 环境搭建 docker-compose ``` version: '2.4' services: goim: build: context: ./ dockerfile: Dockerfile restart: always tty: true volumes: - /home/goim:/app/building working_dir: /app/building networks: build_mm-start: ipv4_address: 192.168.84.248 kafka: image: wurstmeister/kafka:latest restart: always tty: true ports: - 9092:9092 environment: - KAFKA_BROKER_ID=0 - KAFKA_ZOOKEEPER_CONNECT=zokker:2181 #- KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://192.168.84.244:9092 - KAFKA_LISTENERS=PLAINTEXT://0.0.0.0:9092 - KAFKA_ADVERTISED_HOST_NAME=192.168.84.244 working_dir: /opt/kafka_2.12-2.5.0/ #command: "./bin/kafka-console-producer.sh --broker-list 0.0.0.0:9092 --topic mykafka && ./bin/kafka-console-consumer.sh --bootstrap-server 0.0.0.0:9092 --topic mykafka --from-beginning" networks: build_mm-start: ipv4_address: 192.168.84.244 zokker: image: wurstmeister/zookeeper:latest restart: always #ports: #- 2181:2181 networks: build_mm-start: ipv4_address: 192.168.84.4 redis: image: redis restart: always networks: build_mm-start: ipv4_address: 192.168.84.247 discover: image: discovery_discover:latest # 自己编译代码制作的镜像 restart: always environment: - GOPROXY=https://goproxy.io networks: build_mm-start: ipv4_address: 192.168.84.246 networks: build_mm-test: #bridge external: true build_mm-start: #macvlan external: true ``` ## 单独安装 安装kafka\zooker\redis都可以安装上述的docker-compose安装 安装discover: ``` git clone https://github.com/bilibili/discovery.git ```