Nextcloud on Railway

Self-hosted files, calendars and contacts with Nextcloud, PostgreSQL and Redis, on Railway.

Official site · License: AGPL-3.0 · 13 Railway templates

Deploy Nextcloud on RailwayCompare templates

Nextcloud is a self-hosted cloud for files, calendars and contacts. It syncs files to desktop and mobile apps and supports WebDAV, CalDAV and CardDAV, and it is often used as an alternative to Google Drive, Dropbox or Microsoft 365 file sharing.

People and organisations run it to keep their documents and calendars on a server they control, share files with others through links, and add apps for tasks such as calendar and contacts.

Nextcloud is licensed under AGPL-3.0, and the name is a trademark of Nextcloud GmbH.

What Nextcloud can do

  • File sync and sharing with web and client apps
  • WebDAV, CalDAV and CardDAV
  • Calendar and Contacts apps
  • Background jobs through cron
  • Volume or object storage for files

What people use it for

  • A private file sync and share service
  • Self-hosted calendar and contacts
  • Sharing files with clients through links
  • Replacing a consumer cloud storage account

Videos

Nextcloud: Complete Setup Guide · Learn Linux TV
NextCloud Review For Beginners | Everything You Need To Know! (Pros & Cons) · SortnSolve

Running Nextcloud on Railway

The Railway template deploys Nextcloud 34.0.4 with PostgreSQL 18, Redis 8.2 for file locking and caching, and cron-based background jobs. Files go on the service volume by default, or into a Railway Bucket if you choose that before the first deploy. Locally measured memory after install was about 197 MiB for Nextcloud, 63 MiB for Postgres and 5 MiB for Redis; storage is billed per GB.

Nextcloud templates on Railway

Nextcloud 34 Files and CollaborationMaintained by Tracklayer
Nextcloud 34.0.4 is a self-hosted cloud for files, calendars and contacts. This template deploys it with PostgreSQL, Redis for file locking and caching, cron-based background jobs
2 deployments
Deploy
Nextcloud by an independent creator
Nextcloud server on Railway!
404 deployments
Deploy
Nextcloud by an independent creator
Deploy Nextcloud with Bucket storage for scalable cloud file hosting
116 deployments
Deploy
Nextcloud | Open Source Google Drive, Dropbox Alternative by an independent creator
Self-Host Nextcloud on Railway — File Storage, Calendars, and Contacts
33 deployments
Deploy
Nextcloud by an independent creator
Google Drive alternative. File sync, share and collaboration suite
5 deployments
Deploy
Nextcloud by an independent creator
Self-hosted Google Drive, OneDrive & Dropbox alternative for file storage
3 deployments
Deploy
Nextcloud — Self-Hosted Google Drive Alternative by an independent creator
Self-host Nextcloud: files, calendars, contacts & Office. No per-seat fees.
1 deployments
Deploy
Nextcloud Mini by an independent creator
Private file sync, sharing and collaboration you host yourself
1 deployments
Deploy
Nextcloud by an independent creator
Self-hosted file sync, sharing and collaboration with Postgres and Redis
0 deployments
Deploy
Nextcloud by an independent creator
Nextcloud 34 on Postgres and Redis, admin ready on boot, cron included
0 deployments
Deploy
Nextcloud (Self-Hosted Google Drive Alternative) by an independent creator
Self-hosted Google Drive/Dropbox alternative — files, calendar & contacts
0 deployments
Deploy
Nextcloud | (Just Updated) Google Drive Alternative Whose Background Jobs Actually Run by an independent creator
Google Drive alternative whose background jobs and login throttle work
0 deployments
Deploy
Nextcloud 33 by an independent creator
Own your files: Nextcloud with Postgres, Redis, S3-ready storage
0 deployments
Deploy

Tracklayer templates are listed first. Other Nextcloud templates follow, ordered by total deployments on Railway. How this works.

Deployment numbers as of 2026-11-20.

Questions about Nextcloud

How do I log in?

After the first deploy, which takes about two minutes, open the domain and sign in as admin with NEXTCLOUD_ADMIN_PASSWORD from the service variables. Change it and create accounts for your users.

Volume or Bucket for files?

The volume is the default and is limited to 5 GB on the Hobby plan, including about 1 GB for Nextcloud itself. Set NEXTCLOUD_PRIMARY_STORAGE to bucket before the first deploy for a Railway Bucket without that cap. The choice is locked after installation.

Will email work?

Nextcloud sends mail over SMTP, which Railway allows on the Pro plan. Set the SMTP and MAIL variables or configure it under Administration.

How do I use a custom domain?

Add the domain to NEXTCLOUD_TRUSTED_DOMAINS, set OVERWRITECLIURL to https://your-domain and redeploy.

How do I upgrade?

Change the image version in the service Dockerfile and redeploy. Upgrade one major version at a time.

Guides

Similar apps

Tracklayer maintains the templates marked as such; Nextcloud is a trademark of its owners and this site is not affiliated with them.