Nextcloud on Railway
Self-hosted files, calendars and contacts with Nextcloud, PostgreSQL and Redis, on Railway.
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
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
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.