Skip to main content

Docker Deployment

Trial License

Need a trial license? Please refer to: Question 13: How to apply for licenseKey

Tip
  • Operating System: Ubuntu 22.04 LTS
  • Server minimum configuration: 4 cores 8GB RAM
  • Configuration requirements too high? Suggestion: You can split MySQL, Redis, Elasticsearch, ArtemisMQ and other services to other servers, keeping only core services on the main server. This can effectively reduce server configuration requirements.
  • Docker Community Edition images, choose one of the two, recommend Alibaba Cloud image for domestic use
    • bytedesk/bytedesk-ce:latest # hub.docker.com community
    • registry.cn-hangzhou.aliyuncs.com/bytedesk/bytedesk-ce:latest # Alibaba Cloud community image
  • Docker Enterprise Edition/Platform Edition images, choose one of the two, recommend Alibaba Cloud image for domestic use
    • bytedesk/bytedesk:latest # hub.docker.com enterprise
    • registry.cn-hangzhou.aliyuncs.com/bytedesk/bytedesk:latest # Alibaba Cloud enterprise/platform image

Quick Start

git clone https://github.com/Bytedesk/bytedesk.git
cd bytedesk/deploy/docker

# optional: copy env template
cp .env.example .env

# default startup: MySQL + Artemis + standard scenario, middleware only
./start.sh mysql artemis standard middleware

For more combinations (PostgreSQL/Oracle, RabbitMQ, noai, call, full stack), see deploy/docker/readme.md.

Optional: Pull models (when using local Ollama)

# Chat model
ollama pull qwen3:0.6b
# Vector model
ollama pull bge-m3:latest

Stop Containers

# stop current middleware stack (keep containers)
./stop.sh mysql artemis standard stop middleware

# remove current middleware stack containers (keep volumes)
./stop.sh mysql artemis standard down middleware

Open Ports

Please open inbound ports in internal network

  • 9003
  • 9885

Demo

Local preview

# Please replace 127.0.0.1 with your server IP
Access address: http://127.0.0.1:9003/
Default account: admin@email.com
Default password: admin

Orchestration Content (Layered)

If you use cloud models (such as ZhipuAI), configure it in compose-app-bytedesk.yaml:

# Apply for Zhipu AI API Key: https://www.bigmodel.cn/usercenter/proj-mgmt/apikeys
SPRING_AI_ZHIPUAI_API_KEY: 'sk-xxx' # Zhipu AI API Key
SPRING_AI_ZHIPUAI_CHAT_ENABLED: "true"
SPRING_AI_ZHIPUAI_CHAT_OPTIONS_MODEL: glm-4-flash
SPRING_AI_ZHIPUAI_CHAT_OPTIONS_TEMPERATURE: 0.7
SPRING_AI_ZHIPUAI_EMBEDDING_ENABLED: "true"

Troubleshooting

View logs

# For example, view MySQL container logs
docker logs mysql-bytedesk

这页文档对您有帮助吗?