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 # To install as a service #restart: unless-stopped # Set nvidia runtime if it's not the default #runtime: nvidia # The deploy section can be removed it not using GPU deploy: resources: reservations: devices: - driver: nvidia #device_ids: ['0', '1'] # Select a gpu, or count: all capabilities: [gpu]