Deploy Cloudreve

A powerful self-hosted file manager for multi-cloud storage and sharing.

Deploy Cloudreve

/var/lib/postgresql/data

Just deployed

/cloudreve/data

Just deployed

/data

Deploy and Host Cloudreve on Railway

Cloudreve is a self-hosted file management and multi-cloud storage platform that provides a modern web interface for uploading, organizing, sharing, and managing files across local and external storage providers.

This Railway template deploys Cloudreve with PostgreSQL and Redis for a more production-ready setup.

About Hosting Cloudreve

This template deploys Cloudreve using the official cloudreve/cloudreve:v4 container image.

Cloudreve provides a full web-based user interface and API through port 5212. PostgreSQL is used as the primary database, while Redis provides cache and supporting runtime functionality.

A persistent Railway volume is mounted at /cloudreve/data to preserve Cloudreve application data across deployments and restarts.

Only the Cloudreve service is exposed publicly. PostgreSQL and Redis remain accessible through Railway's private network.

After deployment, open the generated Railway domain and register your first Cloudreve account. The first registered user becomes the administrator.

⚠️ Important: Register the first account immediately after deployment. The first registered account receives administrator privileges.

Common Use Cases

  • Self-hosted file management and private cloud storage
  • File upload, download, organization, and sharing
  • Multi-user file hosting
  • Personal or team cloud drive
  • Managing multiple storage providers through one interface
  • Creating public or private file-sharing links
  • Using S3-compatible or external object storage
  • Building a self-hosted alternative to traditional cloud-drive platforms

Dependencies for Cloudreve Hosting

  • Cloudreve — Main web application, API, and file management interface
  • PostgreSQL — Persistent relational database
  • Redis — Cache and supporting runtime services
  • Railway Volume — Persistent Cloudreve application storage mounted at /cloudreve/data

Deployment Architecture

                         Internet
                            │
                            │ HTTPS
                            ▼
                  ┌──────────────────┐
                  │    Cloudreve     │
                  │                  │
                  │   Web UI + API   │
                  │     :5212        │
                  └────────┬─────────┘
                           │
                 Railway Private Network
                           │
              ┌────────────┴────────────┐
              ▼                         ▼
      ┌───────────────┐         ┌───────────────┐
      │  PostgreSQL   │         │     Redis     │
      │     :5432     │         │     :6379     │
      └───────────────┘         └───────────────┘

Cloudreve Persistent Volume
/cloudreve/data

Service Configuration

ServicePublic AccessPortPersistent Storage
Cloudreve✅ HTTP5212/cloudreve/data
PostgreSQL❌ Private5432Railway managed
Redis❌ Private6379Railway managed

Cloudreve communicates with PostgreSQL and Redis over Railway's private network, keeping database services isolated from the public internet.

Persistent Storage

Cloudreve uses the following Railway volume mount:

/cloudreve/data

This volume preserves application data that should survive container restarts and redeployments.

Because Railway supports one persistent volume per service, the volume is attached directly to the Cloudreve service.

First Login and Administrator Account

Cloudreve does not require a predefined administrator username or password through Railway environment variables.

After the deployment finishes:

  1. Open the generated Railway public domain.
  2. Register a new Cloudreve account.
  3. The first registered account becomes the administrator.
  4. Access the administration interface at:
https://your-cloudreve-domain/admin

For security, complete the initial registration shortly after deployment.

Storage Providers

Cloudreve can act as a unified file-management layer for different storage backends.

Depending on your Cloudreve configuration, storage options can include:

  • Local persistent storage
  • S3-compatible object storage
  • OneDrive
  • Aliyun OSS
  • Tencent COS
  • Other Cloudreve-supported storage providers

The default Railway template keeps the infrastructure minimal and does not require an external object-storage service during initial deployment.

Additional storage providers can be configured later from Cloudreve.

Railway Bucket

A Railway Bucket is not required for the base template.

Cloudreve already supports configurable storage policies, including S3-compatible storage. Users who need object storage can connect a compatible provider after the initial Cloudreve deployment.

Keeping object storage optional makes the default template simpler and easier to deploy.

Cloudreve vs Alternatives

FeatureCloudreveNextcloudFile BrowserMinIO
Web file manager
Multi-user support
File sharing
Multi-storage backend
S3-compatible storage integration
Lightweight deployment
Full collaboration suite
Designed primarily as object storage
Modern self-hosted cloud-drive UI⚠️

Cloudreve is particularly suitable when you want a relatively lightweight self-hosted cloud-drive interface with support for multiple storage backends without deploying a larger collaboration suite.

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, storage services, and more on Railway.


Template Content

More templates in this category

View Template
Garage S3 Storage
Ultra-light S3 server: fast, open-source, plug-and-play.

PROJETOS
8
View Template
Redis
Self Host Latest Redis with Railway

7
View Template
EasyImg
Simple self-hostable Nuxt.js personal image hosting system.

Muhammad Bilal
0