Levelrail
Skip to content

Self-host Cloudreve with Docker ​

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

This page describes the Levelrail template for Cloudreve (Storage). It deploys the services below as one Docker Compose app on your own server.

Project site: https://docs.cloudreve.org/.

Recommended memory: about 512 MiB.

Services, ports and volumes ​

ServiceImageContainer portsVolumes
cloudrevecloudreve/cloudreve:4.10.15212
cloudreve_data -> /cloudreve/data
postgrespostgres:16-alpinenone
postgres_data -> /var/lib/postgresql/data
redisredis:7-alpinenone
redis_data -> /data

Environment variables ​

ServiceVariableValue
cloudreveCR_CONF_Database.HostPreset in the template
cloudreveCR_CONF_Database.NamePreset in the template
cloudreveCR_CONF_Database.PasswordGenerated at deploy
cloudreveCR_CONF_Database.PortPreset in the template
cloudreveCR_CONF_Database.TypePreset in the template
cloudreveCR_CONF_Database.UserPreset in the template
cloudreveCR_CONF_Redis.PasswordGenerated at deploy
cloudreveCR_CONF_Redis.ServerPreset in the template
postgresPOSTGRES_DBPreset in the template
postgresPOSTGRES_PASSWORDGenerated at deploy
postgresPOSTGRES_USERPreset in the template

Passwords and keys marked as generated are created for you when the app is deployed and stored as secrets. Values are not shown here.

This template needs configuration before it can deploy. Open it in the dashboard, set each variable marked "You must provide" in the Compose body, then deploy.

Deploy Cloudreve with Levelrail ​

In the dashboard, open Apps, choose New app, then Browse templates, and select Cloudreve. Review the Compose body and deploy.

With the CLI:

levelrail-cli templates get cloudreve --output json | jq -r .compose > cloudreve.compose.yaml
# edit cloudreve.compose.yaml to set the variables you must provide
levelrail-cli apps deploy-compose my-cloudreve --file cloudreve.compose.yaml

See Service template catalog for how templates work, and Getting started if you have not installed Levelrail yet.

More Storage templates ​

All templates are listed in the self-host gallery.

Released under the Apache 2.0 License.