Skip to content

Setup DockerCompose

remsky edited this page Feb 2, 2025 · 1 revision

Building up from source

  1. Install prerequisites, and start the service using Docker Compose (Full setup including UI):
    • Install Docker
    • Clone the repository:
      git clone https://github.com/remsky/Kokoro-FastAPI.git
      cd Kokoro-FastAPI
      
      cd docker/gpu # OR
      # cd docker/cpu # Run this or the above
      docker compose up --build
      # if you are missing any models, run:
      # python ../scripts/download_model.py --type pth  # for GPU
      # python ../scripts/download_model.py --type onnx # for CPU