Analytics cookies only (Google Analytics, PostHog). No ad networks, no cross-site tracking. See our privacy policy.
A self-hosted video hosting and live-streaming platform that federates with other PeerTube instances over ActivityPub. It handles uploads, transcoding, channels and playlists.
Runs on a VPS from $12/mo (Kamatera 4GB, 4 GB RAM) · prices checked Nov 2026
Fits home hardware (210 MB measured idle, RAM only): Raspberry Pi 4 (4 GB) (arm64 untested), Raspberry Pi 5 (8 GB) (arm64 untested), Repurposed laptop (8 GB), Intel N100 mini PC (16 GB), AMD Ryzen mini PC (32 GB).
Paid link — we earn a commission if you shop through it.
Run these commands on your server:
# PeerTube — the official production compose trimmed to PeerTube + PostgreSQL + Redis + Postfix
# (its bundled nginx + certbot services are dropped: bring your own reverse proxy with TLS)
mkdir peertube && cd peertube
# PEERTUBE_WEBSERVER_HOSTNAME is permanent: PeerTube does not support changing it after first start
cat > .env << EOF
POSTGRES_USER=peertube
POSTGRES_PASSWORD=$(openssl rand -hex 16)
POSTGRES_DB=peertube
PEERTUBE_DB_USERNAME=\$POSTGRES_USER
PEERTUBE_DB_PASSWORD=\$POSTGRES_PASSWORD
PEERTUBE_DB_HOSTNAME=postgres
PEERTUBE_DB_SSL=false
PEERTUBE_WEBSERVER_HOSTNAME=video.example.com
PEERTUBE_SECRET=$(openssl rand -hex 32)
PEERTUBE_SMTP_HOSTNAME=postfix
PEERTUBE_SMTP_PORT=25
PEERTUBE_SMTP_FROM=noreply@video.example.com
PEERTUBE_SMTP_TLS=false
PEERTUBE_SMTP_DISABLE_STARTTLS=false
PEERTUBE_ADMIN_EMAIL=admin@video.example.com
POSTFIX_myhostname=video.example.com
OPENDKIM_DOMAINS=video.example.com=peertube
OPENDKIM_RequireSafeKeys=no
EOF
cat > docker-compose.yml << 'EOF'
services:
peertube:
image: chocobozzz/peertube:production
env_file: .env
ports: ["9000:9000", "1935:1935"]
volumes: ["./docker-volume/data:/data", "./docker-volume/config:/config"]
depends_on: [postgres, redis, postfix]
restart: always
postgres:
image: postgres:17-alpine
env_file: .env
volumes: ["./docker-volume/db:/var/lib/postgresql/data"]
restart: always
redis:
image: redis:8-alpine
volumes: ["./docker-volume/redis:/data"]
restart: always
postfix:
image: mwader/postfix-relay
env_file: .env
volumes: ["./docker-volume/opendkim/keys:/etc/opendkim/keys"]
restart: always
EOF
docker compose up -d # → PeerTube on :9000 behind your HTTPS proxy (http://SERVER_IP:9000 for a first look)
# admin login is "root"; its generated password is in: docker compose logs peertube | grep -A1 rootPeerTube used 210 MB of RAM at idle on GCP e2-standard-2 · Ubuntu 26.04 LTS · Docker 29.8.1 (first boot, measured Sep 2026). We list a minimum of 1536 MB.
The PeerTube install snippet is marked verified on Ubuntu 26.04 (Nov 2026).