---
title: "Deploy RustiCal"
description: "Self-hosted CalDAV/CardDAV server for calendars, tasks and contacts"
category: "Other"
url: https://railway.com/deploy/rustical
---

# Deploy RustiCal

Self-hosted CalDAV/CardDAV server for calendars, tasks and contacts

**[Deploy RustiCal on Railway](https://railway.com/template/rustical)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/rustical/manifest.json

- **Creator:** Agaz Self-Host
- **Category:** Other

## Template content

### RustiCal https://raw.githubusercontent.com/aalfath/rustical-railway-template/3e175a980cb19f8aebb7154aacffc2669268f8c9/assets/icon.png

- **Source:** https://github.com/aalfath/rustical-railway-template
- **Health check:** /ping
- **Public domain:** Yes

## Documentation

# Deploy and Host RustiCal on Railway

RustiCal is a small, fast CalDAV and CardDAV server written in Rust. It stores your calendars, tasks and contacts in one SQLite database, syncs them to phones and desktop apps (DAVx5, Apple Calendar, Thunderbird, GNOME, Evolution, Home Assistant), and has a web UI for managing calendars, address books, sharing and per-device app tokens.

## About Hosting RustiCal

This template runs RustiCal v0.20.0 as one service, built from a public GitHub repo that pins the official image by version and digest. The SQLite database lives on a Railway volume at `/var/lib/rustical`, so calendars, contacts and tokens survive redeploys. On first boot the start script creates the admin user from `ADMIN_USERNAME` and a generated `ADMIN_PASSWORD` before the web server opens, so nobody else can claim the instance. Railway provides HTTPS, which RustiCal's web UI and Apple clients require. A health check on `/ping` and a restart-on-failure policy keep it running. It uses about 20 MB of RAM, so it fits Railway's Free plan.

## Common Use Cases

* Private calendar, to-do and contact sync for a phone, tablet and laptop without Google or iCloud
* Shared family or team calendars through RustiCal's group principals
* A CalDAV backend for Home Assistant, Tasks.org or other apps that read calendars

## Dependencies for RustiCal Hosting

* One Railway service built from `aalfath/rustical-railway-template` (official `ghcr.io/lennart-k/rustical` image plus a small start script)
* One Railway volume for the SQLite database

### Deployment Dependencies

* RustiCal source and releases: https://github.com/lennart-k/rustical
* RustiCal documentation: https://lennart-k.github.io/rustical/
* Template repo: https://github.com/aalfath/rustical-railway-template

### Implementation Details

Services: **RustiCal** (web UI on the public domain, plus the CalDAV and CardDAV endpoints). No database service is needed.

After deploying:

1. Open the public URL and sign in with `ADMIN_USERNAME` (default `admin`) and `ADMIN_PASSWORD` from the service's Variables tab.
2. Create a calendar or address book, then create an **app token** for each device. Clients sign in with your user name and the app token, not the web password.
3. Point clients at `https://YOUR-DOMAIN/caldav` and `https://YOUR-DOMAIN/carddav` (use `https://YOUR-DOMAIN/caldav-compat` for Apple Calendar and Home Assistant). DAVx5 can use the Nextcloud login flow, and Apple devices can download a configuration profile from the app-token page.

More users: open the service shell (`railway ssh`) and run `rustical principals create NAME --password`. Changing `ADMIN_PASSWORD` and redeploying resets the admin's web password. OpenID Connect login is optional and set through `RUSTICAL_OIDC__…` variables (see the RustiCal docs).

Updates: new RustiCal versions are merged into the template repo with a changelog entry, and Railway shows an "update available" notice on your project; you choose when to apply it. Export your data from the web UI or back up the volume first.

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



## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — Self-hosted virtual tabletop for role-playing games (license required)
- [Wiki-Go](https://railway.com/deploy/wiki-go) — Flat-file Markdown wiki in Go: no database, generated admin login

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