
Deploy cloudreve
Cloudreve 4.19: self-hosted cloud drive with sharing, WebDAV and previews.
cloudreve
Just deployed
/cloudreve/data
Just deployed
/var/lib/postgresql/data
Deploy and Host Cloudreve on Railway
Cloudreve is a self-hosted cloud drive. It gives users a web file manager with uploads, sharing links, WebDAV, previews for images, video, audio, documents and code, offline downloads through aria2, and storage policies that can keep files locally or in S3, OneDrive and other backends.
About Hosting Cloudreve
This template runs the official cloudreve/cloudreve:4.19.1 image with a Railway Postgres database. On first boot a small script registers the admin account from CLOUDREVE_ADMIN_EMAIL and a generated CLOUDREVE_ADMIN_PASSWORD, then turns public sign-up off, so nobody else can claim the instance. Files use the local storage policy on a Railway volume at /cloudreve/data, which also holds the config. Thumbnails use the bundled ffmpeg, vips and LibreOffice. It fits the Hobby plan for light use; size the volume for your files. Cloudreve logs its database settings at start, including the password, so keep deploy logs private.
Common Use Cases
- A private Google Drive or Dropbox replacement
- Sharing files with expiring links and passwords
- Mounting cloud storage over WebDAV on desktops and phones
Dependencies for Cloudreve Hosting
cloudreve/cloudreve:4.19.1(official image)- Railway Postgres
- A Railway volume at
/cloudreve/data
Deployment Dependencies
Implementation Details
| Service | Source | Networking | Storage |
|---|---|---|---|
| cloudreve | cloudreve/cloudreve:4.19.1 | public domain on 5212 | volume at /cloudreve/data |
| Postgres | Railway Postgres | private | Railway volume |
| Variable | Default | Purpose |
|---|---|---|
CLOUDREVE_ADMIN_EMAIL | admin@example.com | First admin account |
CLOUDREVE_ADMIN_PASSWORD | generated | Its password |
CLOUDREVE_URL | https:// | Site URL set on first boot |
CR_CONF_Database__* | Postgres references | Database connection |
Notes:
- Sign-up is closed after the admin is created; re-enable it in Admin → Settings → User if you want public accounts.
- The seed only runs while no account exists; later changes to the admin variables have no effect.
This is a community-maintained deployment package and does not imply affiliation with or endorsement by the Cloudreve project.
Why Deploy Cloudreve on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying Cloudreve on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content