Self-host Cloudreve on a VPS
A self-hosted file management and sharing system with multiple storage backends.
levelrail-cli templates deploy cloudreve --name my-cloudreveSpecification
- Status
- Listed
- Category
- Storage
- Services
- cloudreve, postgres, redis
- Ports
- 5212
- Volumes
- 3
- Memory
- about 512 MiB
- arm64
- image published
- amd64
- image published
- Settings to fill in
- none
- License
- Copyleft license, GPL-3.0
About Cloudreve
A self-hosted file management and sharing system with multiple storage backends. Runs 3 containers (cloudreve, postgres, redis), with cloudreve listening on port 5212 and keeps its data in named volumes.
What it deploys
Cloudreve runs as 3 services in a single Compose app, listening on port 5212, with 3 named volume mounts.
| Service | Image | Tag | Ports | Volumes |
|---|---|---|---|---|
| cloudreve | cloudreve/cloudreve | 4.10.1 | 5212 | cloudreve_data -> /cloudreve/data |
| postgres | postgres | 16-alpine | none | postgres_data -> /var/lib/postgresql/data |
| redis | redis | 7-alpine | none | redis_data -> /data |
Before you install
- CPU architecture. arm64 listed. Every image lists linux/arm64 in its registry manifest. That is a manifest fact, not proof the app runs on Arm.
- Listed. It is in the catalog. Back up the data volume before changing an image tag.
- Host ports. It publishes port 5212 directly on the host, so open them in the VPS firewall only if you want that.
Settings and environment
You do not have to fill in anything. 4 secrets are generated at deploy and stored encrypted. Values are never shown here.
| Service | Variable | Value |
|---|---|---|
| cloudreve | CR_CONF_Database.Host | Preset by the template |
| cloudreve | CR_CONF_Database.Name | Preset by the template |
| cloudreve | CR_CONF_Database.Password | Generated at deploy |
| cloudreve | CR_CONF_Database.Port | Preset by the template |
| cloudreve | CR_CONF_Database.Type | Preset by the template |
| cloudreve | CR_CONF_Database.User | Preset by the template |
| cloudreve | CR_CONF_Redis.Password | Generated at deploy |
| cloudreve | CR_CONF_Redis.Server | Preset by the template |
| postgres | POSTGRES_DB | Preset by the template |
| postgres | POSTGRES_PASSWORD | Generated at deploy |
| postgres | POSTGRES_USER | Preset by the template |
| redis | REDIS_PASSWORD | Generated at deploy |
Install Cloudreve on a VPS
-
Install Levelrail on a fresh VPS
Run this as root on a Linux server (amd64 or arm64) with ports 80 and 443 reachable. The installer prints a setup link.
curl -fsSL https://levelrail.com/install.sh | sudo sh -
Sign in
Open the setup link, choose a password, then log the CLI in. The CLI install command is
curl -fsSL https://levelrail.com/install-cli.sh | shif the machine does not have it. See Getting started.levelrail-cli login --device -
Read the template
Shows the entry, including its full compose.yaml.
levelrail-cli templates get cloudreve -
Deploy it
This deploys the template compose file as an app. The app name defaults to the template id; --name sets another.
levelrail-cli templates deploy cloudreve --name my-cloudreve
Without a domain the app gets an sslip.io address. You can also deploy it from the dashboard: Apps, New app, Browse templates, then Cloudreve.
Docs and upstream
More in Storage
- ChibisafeA file vault for uploading and sharing files from the cloud.
- copypartyA portable file server with resumable uploads, a media player, and search, in a single small image.
- DufsA tiny file server with uploads, downloads, search and WebDAV over one login. Apache-2.0 licensed. The admin password is generated for you.
- DuplicatiScheduled, encrypted backups of your files to local storage, network shares, or cloud storage.
- File BrowserA simple web UI for browsing, uploading, and sharing files from your own storage.
- FileBrowser QuantumA web file manager with a fast index, search, sharing links and per-user access. Apache-2.0 fork of FileBrowser. Runs in one container; the admin password is generated and shown in the service environment settings.