Files
weiyu/deploy/docker
jack ning 1ed8db5b14 update
2025-12-13 12:38:27 +08:00
..
2025-12-13 12:02:49 +08:00
2025-12-13 12:02:49 +08:00
2025-12-13 12:38:27 +08:00
2025-12-13 12:38:27 +08:00
2025-12-13 12:02:49 +08:00
2025-12-13 12:02:49 +08:00

docker

文件说明

.
├── 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

# 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

## Secrets & Jasypt (optional)

Some docker compose entries may be stored as `ENC(...)`. Only when you actually use those encrypted values do you need to pass the Jasypt password into Docker:

```bash
# 1. Add the password to .env so compose picks it up (never commit real secrets).
echo 'JASYPT_ENCRYPTOR_PASSWORD=please-change-me' >> .env

# 2. Start any compose stack as usual. The Bytedesk service will read the env var.
docker compose -p bytedesk -f docker-compose.yaml up -d
  • Leave JASYPT_ENCRYPTOR_PASSWORD blank (or remove the line) when no encrypted values are in use—startup will fall back to plain text.
  • You can also override algorithms or iterations with additional variables (for example BYTEDESK_SECURITY_JASYPT_ALGORITHM=PBEWITHHMACSHA512ANDAES_256).