mirror of
https://github.com/remsky/Kokoro-FastAPI.git
synced 2025-04-13 09:39:17 +00:00
41 lines
1.2 KiB
YAML
41 lines
1.2 KiB
YAML
name: kokoro-tts
|
|
services:
|
|
kokoro-tts:
|
|
# image: ghcr.io/remsky/kokoro-fastapi-gpu:v0.1.0
|
|
build:
|
|
context: ../..
|
|
dockerfile: docker/gpu/Dockerfile
|
|
volumes:
|
|
- ../../api:/app/api
|
|
ports:
|
|
- "8880:8880"
|
|
environment:
|
|
- PYTHONPATH=/app:/app/api
|
|
- USE_GPU=true
|
|
- USE_ONNX=false
|
|
- PYTHONUNBUFFERED=1
|
|
deploy:
|
|
resources:
|
|
reservations:
|
|
devices:
|
|
- driver: nvidia
|
|
count: 1
|
|
capabilities: [gpu]
|
|
|
|
# # Gradio UI service
|
|
# gradio-ui:
|
|
# image: ghcr.io/remsky/kokoro-fastapi-ui:v0.1.0
|
|
# # Uncomment below to build from source instead of using the released image
|
|
# # build:
|
|
# # context: ../../ui
|
|
# ports:
|
|
# - "7860:7860"
|
|
# volumes:
|
|
# - ../../ui/data:/app/ui/data
|
|
# - ../../ui/app.py:/app/app.py # Mount app.py for hot reload
|
|
# environment:
|
|
# - GRADIO_WATCH=1 # Enable hot reloading
|
|
# - PYTHONUNBUFFERED=1 # Ensure Python output is not buffered
|
|
# - DISABLE_LOCAL_SAVING=false # Set to 'true' to disable local saving and hide file view
|
|
# - API_HOST=kokoro-tts # Set TTS service URL
|
|
# - API_PORT=8880 # Set TTS service PORT
|