mirror of
https://github.com/matatonic/openedai-speech
synced 2025-06-26 18:16:32 +00:00
23 lines
773 B
YAML
23 lines
773 B
YAML
services:
|
|
server:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile # for tts-1-hd support via xtts_v2, ~4GB VRAM required, 13GB
|
|
#dockerfile: Dockerfile.min # piper for all models, no gpu/nvidia required, ~900MB
|
|
command: ["python", "speech.py", "--host", "0.0.0.0", "--port", "8000", "--preload", "xtts"]
|
|
#command: ["python", "speech.py", "--host", "0.0.0.0", "--port", "8000", "--xtts_device", "none"] # min
|
|
ports:
|
|
- "8000:8000"
|
|
# volumes:
|
|
# - .:/app/
|
|
# Below can be removed if not using GPU
|
|
runtime: nvidia
|
|
deploy:
|
|
resources:
|
|
reservations:
|
|
devices:
|
|
- driver: nvidia
|
|
#device_ids: ['0', '1'] # Select a gpu, or
|
|
count: all
|
|
capabilities: [gpu]
|