Files
weiyu/deploy/docker/readme.md
jack ning b569ec5293 update
2025-09-19 10:39:41 +08:00

53 lines
2.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!--
* @Author: jackning 270580156@qq.com
* @Date: 2024-03-12 10:21:18
* @LastEditors: jackning 270580156@qq.com
* @LastEditTime: 2025-09-19 10:28:48
* @Description: bytedesk.com https://github.com/Bytedesk/bytedesk
* Please be aware of the BSL license restrictions before installing Bytedesk IM
* selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license.
* Business Source License 1.1: https://github.com/Bytedesk/bytedesk/blob/main/LICENSE
* contact: 270580156@qq.com
* 联系270580156@qq.com
* Copyright (c) 2024 by bytedesk.com, All Rights Reserved.
-->
# docker
## 文件说明
```bash
.
├── docker-compose-noai.yaml # 不使用ai无机器人问答
├── docker-compose-ollama.yaml # 启动微语同时启动mysql,redis,ollama,elasticsearch依赖和微语内含ollama默认使用ollama对话
├── docker-compose.yaml # 启动微语同时启动mysql,redis,elasticsearch依赖和微语不内含ollama默认使用zhipuai
```
## docker compose
```bash
# https://www.weiyuai.cn/docs/docs/deploy/docker
# clone project
git clone https://github.com/Bytedesk/bytedesk.git
# enter docker directory
cd bytedesk/deploy/docker
# configure environment variables, modify as needed
cp .env.example .env
# start docker compose container, -f flag to specify file path, -d flag to start container in background mode
# start mysql, redis, elasticsearch dependencies and weiyu
docker compose -p bytedesk -f docker-compose.yaml up -d
# start mysql, redis, ollama, elasticsearch dependencies and weiyu, with ollama
docker compose -p bytedesk -f docker-compose-ollama.yaml up -d
# start without ai
docker compose -p bytedesk -f docker-compose-noai.yaml up -d
# chat model
docker exec ollama-bytedesk ollama pull qwen3:0.6b
# embedding model
docker exec ollama-bytedesk ollama pull bge-m3:latest
# rerank model
docker exec ollama-bytedesk ollama pull linux6200/bge-reranker-v2-m3:latest
# stop container
docker compose -p bytedesk -f docker-compose.yaml stop
# stop ollama
docker compose -p bytedesk -f docker-compose-ollama.yaml stop
```