xiaozhi-esp32-server/compose-config/prod-31-docker-compose.yml
2025-02-25 17:01:51 +08:00

78 lines
No EOL
2.7 KiB
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-1:
image: 192.168.101.99/yyn/fish-speech
container_name: fishspeech-1
restart: always
privileged: true
shm_size: '8gb' # 设置共享内存大小为 8GB,设置小了,服务无法启动
network_mode: "bridge"
volumes:
- /data/share/tts-data/fish-speech/references:/opt/fish-speech/references
- /data/share/tts-data/fish-speech/logs:/opt/fish-speech/logs
- /data/share/tts-models/fish-speech/checkpoints:/opt/fish-speech/checkpoints
- /data/share/models/cache:/root/.cache/
deploy:
resources:
reservations:
devices:
- driver: nvidia
device_ids: ['1']
capabilities: [gpu]
environment:
- GRADIO_SERVER_NAME=0.0.0.0
command: python -m tools.api --listen 0.0.0.0:7861 --llama-checkpoint-path "checkpoints/fish-speech-1.4" --decoder-checkpoint-path "checkpoints/fish-speech-1.4/firefly-gan-vq-fsq-8x1024-21hz-generator.pth" --decoder-config-name firefly_gan_vq --compile
ports:
- "17861:7861"
fish-speech-2:
image: yyn/fish-speech
container_name: fishspeech-2
restart: always
privileged: true
shm_size: '8gb' # 设置共享内存大小为 8GB,设置小了,服务无法启动
network_mode: "bridge"
volumes:
- fish-speech-references:/opt/fish-speech/references
- fish-speech-ckpt:/opt/fish-speech/checkpoints
- fish-speech-models:/root/.cache/
- fish-speech-models:/root/.cache/
deploy:
resources:
reservations:
devices:
- driver: nvidia
device_ids: ['2']
capabilities: [gpu]
environment:
- GRADIO_SERVER_NAME=0.0.0.0
- HOSTNAME=192.168.61.31
command: python -m tools.api --listen 0.0.0.0:7861 --llama-checkpoint-path "checkpoints/fish-speech-1.4" --decoder-checkpoint-path "checkpoints/fish-speech-1.4/firefly-gan-vq-fsq-8x1024-21hz-generator.pth" --decoder-config-name firefly_gan_vq --compile
ports:
- "17862:7861"
volumes:
fish-speech-references:
driver_opts:
type: "nfs"
o: "addr=192.168.101.244,nolock,soft,rw"
device: ":/data/share/fish-speech/references" # reference
fish-speech-ckpt:
driver_opts:
type: "nfs"
o: "addr=192.168.101.244,nolock,soft,rw"
device: ":/data/share/fish-speech/checkpoints" # ckpt
fish-speech-logs:
driver_opts:
type: "nfs"
o: "addr=192.168.101.244,nolock,soft,rw"
device: ":/data/share/var/logs/fishspeech/logs"
fish-speech-models:
driver_opts:
type: "nfs"
o: "addr=192.168.101.244,nolock,soft,rw"
device: ":/data/share/models" # 远程 hg/ms