# GPU-enabled voice service overlay
# Usage: docker compose -f docker-compose.yml -f docker-compose.voice.yml up voice-service

services:
  voice-service:
    environment:
      - DEVICE=cuda
    volumes:
      - ../../models:/app/models
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: 1
              capabilities: [gpu]
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:3008/health"]
      interval: 30s
      start_period: 60s
