xiaozhi-esp32-server/main/xiaozhi-server/docker-compose.yml

30 lines
No EOL
917 B
YAML

# Docker安装Server
version: '3'
services:
xiaozhi-esp32-server:
build:
context: ../../
dockerfile: Dockerfile-server
container_name: xiaozhi-esp32-server
restart: always
security_opt:
- seccomp:unconfined
env_file:
- .env
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
- VOICE_PRINT_URL=http://192.168.1.178:8005/voiceprint/health?key=39fd8c01-c868-4197-8308-f91893864d6a
- TZ=America/Sao_Paulo
ports:
- "8000:8000"
- "8003:8003"
volumes:
# Persistent data files and large model files only:
- ./data:/opt/xiaozhi-esp32-server/data
- ./models/SenseVoiceSmall/model.pt:/opt/xiaozhi-esp32-server/models/SenseVoiceSmall/model.pt
# (Optional) Allows real-time plugin editing without rebuilding the image after each change:
- ./plugins_func:/opt/xiaozhi-esp32-server/plugins_func