mirror of
https://github.com/remsky/Kokoro-FastAPI.git
synced 2025-04-13 09:39:17 +00:00

Major changes: - Baked model directly into Dockerfile for improved deployment - Switched to uv for dependency management - Restructured Docker files into docker/cpu and docker/gpu directories - Updated configuration for better ONNX performance
33 lines
897 B
YAML
33 lines
897 B
YAML
services:
|
|
kokoro-tts:
|
|
build:
|
|
context: ../..
|
|
dockerfile: docker/gpu/Dockerfile
|
|
volumes:
|
|
- ../../api/src:/app/api/src # Mount src for development
|
|
ports:
|
|
- "8880:8880"
|
|
environment:
|
|
- PYTHONPATH=/app:/app/Kokoro-82M
|
|
deploy:
|
|
resources:
|
|
reservations:
|
|
devices:
|
|
- driver: nvidia
|
|
count: 1
|
|
capabilities: [gpu]
|
|
|
|
# Gradio UI service
|
|
gradio-ui:
|
|
# image: ghcr.io/remsky/kokoro-fastapi-ui:latest
|
|
# 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
|