fix: 多种docker build 编译方式

This commit is contained in:
TOM88812
2025-02-18 14:56:53 +08:00
parent 5fb89ee83c
commit 899b5b682b
2 changed files with 65 additions and 3 deletions
+8 -3
View File
@@ -6,7 +6,12 @@ services:
#security_opt:
# - seccomp:unconfined
ports:
- "8000:8000"
- "8002:8002"
- "8000:8000" # ws服务端
- "8002:8002" # 管理后台
volumes:
- ./.config.yaml:/opt/xiaozhi-esp32-server/config.yaml
# 配置文件 记得创建文件夹
- ./data:/opt/xiaozhi-esp32-server/data
# 模型文件 //可以挂载本地下载好的模型
#- ./models:/opt/xiaozhi-esp32-server/models
# 临时文件 //可以看log和音频文件 记得创建文件夹
#- ./tmp:/opt/xiaozhi-esp32-server/tmp