xiaozhi-esp32-server/main/xiaozhi-server/docker-compose.yml
tan73123 cd5e546920
Update docker-compose.yml
修改了# 模型文件挂接,将/opt/xiaozhi-esp32-server/改为/opt/xiaozhi-server,
      - ./models/SenseVoiceSmall/model.pt:/opt/xiaozhi-server/models/SenseVoiceSmall/model.pt
2025-12-28 22:48:03 +08:00

22 lines
708 B
YAML
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.

# Docker安装Server
version: '3'
services:
xiaozhi-esp32-server:
image: ghcr.nju.edu.cn/xinnan-tech/xiaozhi-esp32-server:server_latest
container_name: xiaozhi-esp32-server
restart: always
security_opt:
- seccomp:unconfined
environment:
- TZ=Asia/Shanghai
ports:
# ws服务端
- "8000:8000"
# http服务的端口,用于简单OTA接口(单服务部署),以及视觉分析接口
- "8003:8003"
volumes:
# 配置文件目录
- ./data:/opt/xiaozhi-esp32-server/data
# 模型文件挂接,很重要(修改路径为xiaozhi-server)
- ./models/SenseVoiceSmall/model.pt:/opt/xiaozhi-server/models/SenseVoiceSmall/model.pt