Self-host Cloudreve with Levelrail

A self-hosted file management and sharing system with multiple storage backends.

  • Authorcloudreve
  • LicenceGPL-3.0
  • Memory512 MiB
  • Archarm64
  • Services3

How to self-host Cloudreve

  1. Pull the images

    3 images are pulled on your server.

    Show images
    • cloudreve/cloudreve:4.10.1
    • postgres:16-alpine
    • redis:7-alpine
  2. Create the app

    3 services start in a single Compose app, with 3 named volume mounts for your data, on port 5212.

  3. Fill in the secrets

    4 secrets are generated and stored encrypted, 8 settings are preset, you do not have to fill in anything.

  4. Open it

    Without a domain the app gets an sslip.io address; add --domain SERVICE=HOST to use your own.

Cloudreve requirements

Memory
About 512 MiB
Architectures
amd64 image published, arm64 image published
Ports
5212
Domain
Optional, an sslip.io address is used without one
Settings
none to fill in
License
GPL-3.0, copyleft license
  • Listed. It is in the catalog but not verified. Back up the data volume before changing an image tag.
  • Host ports. It publishes port 5212 on the host, so open them in the VPS firewall only if you want that.

Install Levelrail first

On a server with Levelrail running, run the command above, or open the dashboard: Apps, New app, Browse templates, then Cloudreve. New to Levelrail? Install it on a fresh VPS first.

docker pull ghcr.io/glincker/levelrail:latest

Then levelrail-cli login --device. See Getting started and the Cloudreve docs page.

Deploy Cloudreve your way

Every format below deploys the same pinned images. Pick the one that fits how you work.

Deploy Cloudreve from the CLI

levelrail-cli templates deploy cloudreve --name my-cloudreve

Deploy Cloudreve with the API

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/cloudreve/deploy

Cloudreve configuration

Cloudreve services

ServiceImagePortsVolumes
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

Cloudreve environment variables

VariableServiceValue
CR_CONF_Database.Host cloudreve Preset by the template
CR_CONF_Database.Name cloudreve Preset by the template
CR_CONF_Database.Password cloudreve Generated at deploy
CR_CONF_Database.Port cloudreve Preset by the template
CR_CONF_Database.Type cloudreve Preset by the template
CR_CONF_Database.User cloudreve Preset by the template
CR_CONF_Redis.Password cloudreve Generated at deploy
CR_CONF_Redis.Server cloudreve Preset by the template
Show all 12 variables
  • POSTGRES_DBpostgresPreset by the template
  • POSTGRES_PASSWORDpostgresGenerated at deploy
  • POSTGRES_USERpostgresPreset by the template
  • REDIS_PASSWORDredisGenerated at deploy

Ports and volumes

Ports
5212
Volumes
3 named mounts: cloudreve_data -> /cloudreve/data, postgres_data -> /var/lib/postgresql/data, redis_data -> /data

Cloudreve FAQ

How much memory does Cloudreve need?

The catalog lists about 512 MiB of memory for Cloudreve across its 3 services.

Does Cloudreve run on arm64?

For Cloudreve, an arm64 image is published; amd64 is image published.

What licence is Cloudreve under?

Cloudreve is licensed under GPL-3.0, which is copyleft, so changes you distribute must be shared under the same terms.

Does Cloudreve need configuration before it starts?

No. The template fills in its own defaults and generates secrets at deploy time.

Which database does Cloudreve bundle?

The template includes Postgres and Redis, running as its own service.

Which ports does Cloudreve use?

Cloudreve listens on port 5212 inside the stack.

Where does Cloudreve keep its data?

In named volumes: cloudreve_data mounted at /cloudreve/data, postgres_data mounted at /var/lib/postgresql/data and redis_data mounted at /data.

Can I deploy Cloudreve on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list has an entry with the id cloudreve for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image cloudreve/cloudreve:4.10.1, postgres:16-alpine, redis:7-alpine is what you deploy there.

levelrail-cli templates deploy cloudreve --name my-cloudreve