services:
  audiocpp-server:
    image: ghcr.io/0xshug0/audio.cpp:full-cuda12
    restart: unless-stopped
    stop_grace_period: 30s
    ports:
      - "8080:8080"
    environment:
      - NVIDIA_VISIBLE_DEVICES=all
    volumes:
      - ./../models:/models:ro
      - ./../references:/references:ro
      - ./qwen3-tts-server.json:/app/server.json:ro
    deploy:
      resources:
        reservations:
          devices:
            - capabilities: ["gpu"]
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 15s
    command: ["server", "--config", "/app/server.json"]
