PeakCut.orgUnofficial PeakCut Tools
Back to PeakCut Hub
Self-Hosted Deployment Guide

How to Deploy PeakCut with Docker Compose & Caddy HTTPS

PeakCut bundles a Docker Compose stack combining the FastAPI studio app, PostgreSQL, and an optional Caddy reverse proxy for automatic TLS certificates. Because sherpa-onnx and FFmpeg run on CPU, you do not need an expensive GPU server.

Recommended Minimum Specs
  • • CPU: 4 vCPUs (speeds up FFmpeg 9:16 burn-in significantly)
  • • RAM: 4 GB minimum (8 GB recommended for long 2h+ streams)
  • • Disk: 40 GB+ NVMe SSD (stores temporary VODs & 480MB STT model)
  • • GPU: None required (CPU-only works out of the box)
Budget CPU Hosting Options

Need an always-on server for live stream rolling-buffer clipping? Deploy via Railway for zero-ops Docker or Hetzner Cloud for the lowest cost per vCPU.

PeakCut 1-Click Setup & .env GeneratorVerified vs Official Repo
Synced with haziqahmedqasmi/PeakCut
PEAKCUT_PORT

No GPU needed: sherpa-onnx runs speech-to-text locally on CPU (~480MB auto-download on first boot) and FFmpeg renders 9:16 shorts locally.

# 1. Install FFmpeg (Windows PowerShell — restart terminal after install!)
winget install Gyan.FFmpeg
python --version   # Must be Python 3.10+
ffmpeg -version

# 2. Clone into a SHORT path (C:\peakcut avoids Windows path-length errors with speech libs)
git clone https://github.com/haziqahmedqasmi/PeakCut.git C:\peakcut
cd C:\peakcut

# 3. Create virtual environment & install dependencies (FastAPI, yt-dlp, sherpa-onnx)
python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txt

# 4. Optional: Copy .env.example -> .env (or configure your API key in Web UI -> Settings > AI)
copy .env.example .env

# 5. Launch PeakCut Studio (first run downloads ~480MB local speech model automatically)
python -m studio.server

# 6. Open dashboard in browser: http://127.0.0.1:8765
Skip Python 3.10, FFmpeg PATH & yt-dlp Errors?

Paste any YouTube link and export 9:16 captioned shorts in 30 seconds directly in your browser.

Runs locally at 127.0.0.1:8765 · Zero watermark · Official docker-compose.yml ready
View Official GitHub Repo ↗

Enabling Built-In Caddy Auto-HTTPS & Admin Access

PeakCut's official docker-compose.yml already includes PostgreSQL and Caddy. Point an A-record for your domain to your VPS IP, enable the own-https profile in .env, and grant yourself admin access:

# In ~/peakcut/.env
PEAKCUT_DOMAIN=clip.yourdomain.com
POSTGRES_PASSWORD=your_strong_password
PEAKCUT_ACCOUNTS=1
COMPOSE_PROFILES=own-https

# Start stack, sign up at https://clip.yourdomain.com, then grant admin:
docker compose up -d --build
docker compose exec app python -m studio.admin grant [email protected]