---
title: "Deploy ownCloud"
description: "Self-host file sync and collaboration with durable MariaDB and Redis."
category: "Storage"
url: https://railway.com/deploy/owncloud
---

# Deploy ownCloud

Self-host file sync and collaboration with durable MariaDB and Redis.

**[Deploy ownCloud on Railway](https://railway.com/template/owncloud)**

- **Creator:** Heron Technology
- **Category:** Storage

## Template content

### MariaDB

- **Image:** mariadb:10.11@sha256:be981e4113326ada8d6004174dd09eeaefc03094037f811182a52d4f2e737350
- **Start command:** `/usr/local/bin/docker-entrypoint.sh mariadbd --max-allowed-packet=128M --innodb-log-file-size=64M --transaction-isolation=READ-COMMITTED`

### ownCloud

- **Image:** owncloud/server:10.16.3-20260726@sha256:f184a7b7ceeee843250ceb3a4a9a5426a3e86022b7b254ac157f7c3c88497266
- **Health check:** /status.php
- **Public domain:** Yes

### Redis

- **Image:** redis:6-alpine@sha256:ec5e187c913d422cdf60f4216a5fdfb95246792c6de6fe21ff5bed75cbfc8c23
- **Start command:** `/usr/local/bin/docker-entrypoint.sh redis-server --appendonly yes --databases 1`

## Documentation

# Deploy and Host ownCloud on Railway

## What is ownCloud?

ownCloud is an open-source file sync, sharing, and content collaboration
platform. It provides browser, desktop, mobile, and WebDAV access while keeping
files and account data under the deployer’s control. Teams can synchronize,
organize, and share files without depending on a third-party storage provider.

## About Hosting ownCloud

This community template runs the official, digest-pinned ownCloud 10.16.3
container with private MariaDB 10.11 and Redis 6 services. Railway persists the
complete ownCloud data root, database, and Redis state on three dedicated
volumes. Only ownCloud is exposed through Railway HTTPS. The container installs
or upgrades the database before Apache starts, runs background jobs with its
built-in cron daemon, and exposes `/status.php` for health checks. Railway
generates the application, administrator, and database secrets. Redis is
reachable only over Railway's project-private network, matching the upstream
compose topology. This
template is not affiliated with or endorsed by ownCloud GmbH or Kiteworks.

## Common Use Cases

* Synchronize documents and media across desktop and mobile devices.
* Share files and folders with controlled access.
* Provide a private WebDAV and browser-based collaboration workspace.

## Dependencies for ownCloud Hosting

* Official ownCloud Server 10.16.3 container.
* MariaDB 10.11 for durable application metadata.
* Redis 6 for distributed caching and transactional file locking.
* Persistent Railway volumes for ownCloud, MariaDB, and Redis.

### Deployment Dependencies

* [ownCloud Docker installation guide](https://doc.owncloud.com/server/latest/admin_manual/installation/docker/)
* [ownCloud environment-variable reference](https://doc.owncloud.com/server/latest/admin_manual/configuration/envvars/envvars.html)
* [ownCloud system requirements](https://doc.owncloud.com/server/latest/admin_manual/installation/system_requirements.html)
* [Official ownCloud Server image](https://github.com/owncloud-docker/server)

### Implementation Details

The template pins
`owncloud/server:10.16.3-20260726@sha256:f184a7b7ceeee843250ceb3a4a9a5426a3e86022b7b254ac157f7c3c88497266`,
`mariadb:10.11@sha256:be981e4113326ada8d6004174dd09eeaefc03094037f811182a52d4f2e737350`,
and
`redis:6-alpine@sha256:ec5e187c913d422cdf60f4216a5fdfb95246792c6de6fe21ff5bed75cbfc8c23`.
The ownCloud volume is mounted at `/mnt/data`; the image creates and owns
`config`, `files`, `apps`, and `sessions` beneath it. MariaDB uses
`/var/lib/mysql`, and Redis uses `/data` with append-only persistence.

Before updating, back up all three volumes together, review the ownCloud and
database release notes, and validate the new immutable image set in an isolated
project. If a database migration is incompatible, restore the matching volumes
and the prior image set together.

## Why Deploy ownCloud 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 ownCloud on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, and supporting infrastructure on Railway.


## Similar templates

- [Garage S3 Storage](https://railway.com/deploy/garage-s3-storage) — Ultra-light S3 server: fast, open-source, plug-and-play.
- [Redis](https://railway.com/deploy/redis-1) — Self Host Latest Redis with Railway
- [EasyImg](https://railway.com/deploy/easyimg) — Simple self-hostable Nuxt.js personal image hosting system.

Open this page in a browser: https://railway.com/deploy/owncloud
