services: kokoro-tts: build: context: . dockerfile: Dockerfile image: kokoro-tts-openai:latest container_name: kokoro-tts-openai restart: unless-stopped ports: - "7860:7860" environment: - PORT=7860 - DEFAULT_VOICE=af_heart - API_KEY= # Optional: set a Bearer token/secret to require authentication volumes: - kokoro-cache:/home/user/.cache/huggingface volumes: kokoro-cache: name: kokoro_hf_cache