xiaozhi-esp32-server/compose-config/test-243-docker-compose.yml
2025-02-26 10:16:09 +08:00

25 lines
863 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.

version: '3.8'
services:
fish-speech:
image: 192.168.101.99/yyn/192.168.101.99/yyn/esp32-server:1.0
container_name: esp32-server
restart: always
shm_size: '8gb' # 设置共享内存大小为 8GB,设置小了,服务无法启动
network_mode: "bridge"
volumes:
- /appdata/share/tts-data/fish-speech/references:/opt/fish-speech/references
- /appdata/share/tts-data/fish-speech/logs:/opt/fish-speech/logs
- /appdata/share/tts-models/fish-speech/checkpoints:/opt/fish-speech/checkpoints
- /appdata/share/models/cache:/root/.cache/
deploy:
resources:
reservations:
devices:
- driver: nvidia
capabilities: [gpu]
device_ids: ['1']
environment:
- GRADIO_SERVER_NAME=0.0.0.0
- HOSTNAME=192.168.101.243
ports:
- "18089:8080"