Skip to content

armgit / ODS

Public Imported from GitHub
0

ODS V3 Pre-Release: Public testing and refinement ahead of the official V3 launch. Turn your PC, Mac, or Linux box into a private AI server.

1.0 KB
Raw Blame
services:
  tts:
    image: ghcr.io/remsky/kokoro-fastapi-cpu:v0.2.4@sha256:c8812546d358cbfd6a5c4087a28795b2b001d8e32d7a322eedd246e6bc13cb55
    container_name: ods-tts
    restart: unless-stopped
    security_opt:
      - no-new-privileges:true
    environment:
      - PYTHONDONTWRITEBYTECODE=1
      - DEFAULT_VOICE=af_heart
      - UVICORN_WORKERS=${TTS_WORKERS:-1}
      - OMP_NUM_THREADS=${TTS_THREADS:-1}
      - MKL_NUM_THREADS=${TTS_THREADS:-1}
    ports:
      - "127.0.0.1:${TTS_PORT:-8880}:8880"
    deploy:
      resources:
        limits:
          cpus: '${TTS_CPU_LIMIT:-1.0}'
          memory: 4G
        reservations:
          cpus: '${TTS_CPU_RESERVATION:-0.5}'
          memory: 1G
    healthcheck:
      test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8880/health', timeout=5)"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 30s
    logging:
      driver: "json-file"
      options:
        max-size: "10m"
        max-file: "3"