企业 IM、在线客服、企业知识库 / 帮助文档、客户之声、工单系统、AI 对话、工作流、项目管理。

Docker 快速开始

方法一:克隆项目并启动docker compose容器,需要另行安装ollama,默认使用 qwen3:0.6b 模型

git clone https://gitee.com/270580156/weiyu.git && cd weiyu/deploy/docker && docker compose -p weiyu -f docker-compose.yaml up -d
 

因项目默认使用ollama qwen3:0.6b模型,所以需要提前拉取模型。配置文件中可以配置其他模型,如deepseek-r1等

# 对话Chat模型
ollama pull qwen3:0.6b
# 嵌入Embedding模型
ollama pull bge-m3:latest
# 重新排序Rerank模型
ollama pull linux6200/bge-reranker-v2-m3:latest
# 或者从 huggingface 下载模型
# ollama pull hf.co/<username>/<model-repository>
 

方法二:使用 docker compose ollama,默认安装ollama,默认使用 qwen3:0.6b 模型

git clone https://gitee.com/270580156/weiyu.git && cd weiyu/deploy/docker && docker compose -p weiyu -f docker-compose-ollama.yaml up -d
 

docker 拉取ollama模型。配置文件中可以配置其他模型,如deepseek-r1等

# 对话模型
docker exec ollama-bytedesk ollama pull qwen3:0.6b
# 嵌入模型
docker exec ollama-bytedesk ollama pull bge-m3:latest
# 重新排序Rerank模型
docker exec ollama-bytedesk ollama pull linux6200/bge-reranker-v2-m3:latest
# 或者从 huggingface 下载模型
# docker exec ollama-bytedesk ollama pull hf.co/<username>/<model-repository>
 

停止容器

docker compose -p weiyu -f docker-compose.yaml stop
 

修改配置,否则上传图片、文件和知识库无法正常显示

  • 修改 docker-compose.yaml 文件 或 docker-compose-ollama.yaml 文件,修改以下配置项:
# 请将服务器127.0.0.1替换为你的服务器ip
BYTEDESK_UPLOAD_URL: http://127.0.0.1:9003
BYTEDESK_KBASE_API_URL: http://127.0.0.1:9003
 

源码: https://gitee.com/270580156/weiyu/  

官网: https://weiyuai.cn/