Files
weiyu/deploy/docker/readme.md
2025-05-14 18:40:17 +08:00

44 lines
1.8 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-05-14 18:19:39
* @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
## 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 middleware container, including rabbitmq and rediswithout weiyu
docker compose -p bytedesk -f docker-compose-middleware.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
```