25 lines
796 B
YAML
25 lines
796 B
YAML
services:
|
|
server:
|
|
build:
|
|
dockerfile: Dockerfile # for tts-1-hd support via xtts_v2, ~4GB VRAM required, ~8GB
|
|
#dockerfile: Dockerfile.min # piper for all models, no gpu/nvidia required, ~1GB
|
|
image: ghcr.io/matatonic/openedai-speech
|
|
#image: ghcr.io/matatonic/openedai-speech-min
|
|
env_file: speech.env
|
|
ports:
|
|
- "8000:8000"
|
|
volumes:
|
|
- ./voices:/app/voices
|
|
- ./config:/app/config
|
|
# install as a service, run with docker compose up -d
|
|
#restart: unless-stopped
|
|
# 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]
|