Deploy PeerTube Video Platform
PeerTube video hosting with HLS transcoding, PostgreSQL and Redis
Data
PostgreSQL
Just deployed
/var/lib/postgresql/data
Redis
Just deployed
/data
Application
PeerTube
Just deployed
/data
Deploy and Host PeerTube Video Platform on Railway
PeerTube is a free, federated video platform. You upload videos, it transcodes them to adaptive HLS streams, and visitors watch them in the browser. Channels, playlists, comments and subscriptions work across the fediverse, so other PeerTube servers and Mastodon users can follow your channels.
About Hosting PeerTube Video Platform
The template runs the official PeerTube v8.3.2 image with PostgreSQL 17 and Redis 8, each pinned by digest. PeerTube is the only public service and serves the web app, API, ActivityPub and video files itself. Videos, thumbnails and plugins live on a 5 GB volume, PostgreSQL on its own 5 GB volume, and Redis keeps PeerTube's transcoding queue in an append-only file on a 1 GB volume, so queued jobs survive restarts. On the first boot PeerTube creates a root administrator with a generated password that you copy from the PeerTube service variables. Registration is closed until you open it.
Why Deploy PeerTube Video Platform on Railway
Railway gives PeerTube the stable HTTPS domain that federation needs, private networking to its database and queue, persistent volumes, generated secrets and health-checked deploys. The template passes each visitor's real address to PeerTube, so its sign-in rate limits and view counts work behind Railway's proxy, and private videos stay private because PeerTube serves their files only to people allowed to watch.
Common Use Cases
- Host videos for a school, project, club or company without ads or tracking
- Publish a channel that people can follow from Mastodon and other fediverse servers
- Share unlisted, private or password-protected videos with a team or community
- Run a small video library for a community you moderate yourself
Dependencies for PeerTube Video Platform Hosting
The deployment uses PeerTube (joinpeertube.org), PostgreSQL and Redis. PeerTube is a registered trademark of Framasoft; this template is not affiliated with Framasoft.
Deployment Dependencies
- PeerTube v8.3.2 with ffmpeg transcoding
- PostgreSQL 17 and Redis 8 with persistent volumes
- One value from you: the administrator's email address
- Optional: an SMTP provider for password resets and notifications
Template Content
PostgreSQL
postgres:17.12-alpineRedis
redis:8.10.3-alpinePeerTube
chocobozzz/peertube:v8.3.2PEERTUBE_ADMIN_EMAIL
Required. Email address of the root administrator account.
