Self-host ownCloud with Levelrail
The classic self-hosted file sync and share platform, with MariaDB and Redis for metadata and locking.
- Memory1 GiB
- Archarm64
- Services3
How to self-host ownCloud
-
Pull the images
3 images are pulled on your server.
Show images
mariadb:11.2owncloud/server:10.15redis:7-alpine
-
Create the app
3 services start in a single Compose app, with 3 named volume mounts for your data, on port 8080.
-
Fill in the secrets
4 secrets are generated and stored encrypted, 12 settings are preset, you do not have to fill in anything.
-
Open it
Without a domain the app gets an sslip.io address; add --domain SERVICE=HOST to use your own.
ownCloud requirements
- Memory
- About 1 GiB
- Architectures
- amd64 image published, arm64 image published
- Ports
- 8080
- Domain
- Optional, an sslip.io address is used without one
- Settings
- none to fill in
- License
- not yet recorded
- Listed. It is in the catalog but not verified. Back up the data volume before changing an image tag.
Install Levelrail first
On a server with Levelrail running, run the command above, or open the dashboard: Apps, New app, Browse templates, then ownCloud. 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 ownCloud docs page.
Deploy ownCloud your way
Every format below deploys the same pinned images. Pick the one that fits how you work.
Deploy ownCloud from the CLI
levelrail-cli templates install owncloud --name my-owncloud Deploy ownCloud with the API
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
https://levelrail.example.com/api/v1/service-templates/owncloud/install \
-d '{
"name": "my-owncloud"
}' ownCloud configuration
ownCloud services
| Service | Image | Ports | Volumes |
|---|---|---|---|
| mariadb | mariadb:11.2 | none | db -> /var/lib/mysql |
| owncloud | owncloud/server:10.15 | 8080 | files -> /mnt/data |
| redis | redis:7-alpine | none | redis -> /data |
ownCloud environment variables
| Variable | Service | Value |
|---|---|---|
| MYSQL_DATABASE | mariadb | Preset by the template |
| MYSQL_PASSWORD | mariadb | Generated at deploy |
| MYSQL_ROOT_PASSWORD | mariadb | Generated at deploy |
| MYSQL_USER | mariadb | Preset by the template |
| OWNCLOUD_ADMIN_PASSWORD | owncloud | Generated at deploy |
| OWNCLOUD_ADMIN_USERNAME | owncloud | Preset by the template |
| OWNCLOUD_DB_HOST | owncloud | Preset by the template |
| OWNCLOUD_DB_NAME | owncloud | Preset by the template |
Show all 16 variables
- OWNCLOUD_DB_PASSWORDowncloudGenerated at deploy
- OWNCLOUD_DB_TYPEowncloudPreset by the template
- OWNCLOUD_DB_USERNAMEowncloudPreset by the template
- OWNCLOUD_DOMAINowncloudPreset by the template
- OWNCLOUD_MYSQL_UTF8MB4owncloudPreset by the template
- OWNCLOUD_REDIS_ENABLEDowncloudPreset by the template
- OWNCLOUD_REDIS_HOSTowncloudPreset by the template
- OWNCLOUD_TRUSTED_DOMAINSowncloudPreset by the template
Ports and volumes
- Ports
- 8080
- Volumes
- 3 named mounts: db -> /var/lib/mysql, files -> /mnt/data, redis -> /data
ownCloud FAQ
How much memory does ownCloud need?
The catalog lists about 1 GiB of memory for ownCloud across its 3 services.
Does ownCloud run on arm64?
For ownCloud, an arm64 image is published; amd64 is image published.
Does ownCloud need configuration before it starts?
No. The template fills in its own defaults and generates secrets at deploy time.
Which database does ownCloud bundle?
The template includes MySQL and Redis, running as its own service.
Which ports does ownCloud use?
ownCloud listens on port 8080 inside the stack.
Where does ownCloud keep its data?
In named volumes: db mounted at /var/lib/mysql, files mounted at /mnt/data and redis mounted at /data.
Can I deploy ownCloud on Dokploy or Dokku?
The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for ownCloud, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image mariadb:11.2, owncloud/server:10.15, redis:7-alpine is what you deploy there.