---
title: "Deploy CryptPad"
description: "End-to-end encrypted docs, sheets, kanban and forms, with sandbox origin"
category: "Other"
url: https://railway.com/deploy/cryptpad-1
---

# Deploy CryptPad

End-to-end encrypted docs, sheets, kanban and forms, with sandbox origin

**[Deploy CryptPad on Railway](https://railway.com/template/cryptpad-1)**

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

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

## Template content

### Sandbox https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/cryptpad.png

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

### CryptPad https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/cryptpad.png

- **Source:** https://github.com/aalfath/cryptpad-railway-template
- **Health check:** /api/config
- **Public domain:** Yes

## Documentation

# Deploy and Host CryptPad on Railway

CryptPad is an open-source, end-to-end encrypted office suite from XWiki SAS: rich text, documents, spreadsheets, presentations, code, kanban boards, whiteboards, diagrams, forms and polls, edited together in real time in the browser. Documents are encrypted on the device, so the server only stores data it cannot read.

## About Hosting CryptPad

This template deploys CryptPad 2026.10.1 from the official `cryptpad/cryptpad` image as two services. **CryptPad** runs the server and keeps every document, file, account and admin setting on one volume at `/data`. **Sandbox** is a small Caddy proxy that gives the same server its second address: CryptPad opens its editors in iframes from a separate "sandbox" origin, so a malicious document can't reach the keys on the main page, and it won't work properly without one. Both domains are created and wired for you. The office editors are built into the image, so Document, Sheet and Presentation work on the first open. No database is needed.

## Common Use Cases

* A private alternative to Google Docs or Office 365 for a team, school or family
* Sharing confidential documents, forms and polls without the host being able to read them
* Real-time notes, kanban boards, whiteboards and diagrams for a project

## Dependencies for CryptPad Hosting

* A Railway volume for the encrypted documents, files and accounts (attached by the template)
* Two public Railway domains: the main address and the sandbox address (created by the template)

### Deployment Dependencies

* [CryptPad on GitHub](https://github.com/cryptpad/cryptpad) and the [admin guide](https://docs.cryptpad.org/en/admin_guide/installation.html)
* [Template source](https://github.com/aalfath/cryptpad-railway-template), built from the official [cryptpad/cryptpad](https://hub.docker.com/r/cryptpad/cryptpad) image

### Implementation Details

**Services**

* **CryptPad**: the CryptPad server (HTTP, websocket and storage nodes in one container), health check `/api/config`, volume at `/data`.
* **Sandbox**: Caddy reverse proxy for the second origin, over Railway's private network, health check `/healthz`.

**After deploy: create the admin account**

1. Open the CryptPad service's **Variables** tab and open the link in `CRYPTPAD_ADMIN_SETUP_URL`. It holds a generated one-time token, so only you can claim the instance. The first deploy log points you to it too.
2. Choose a username and password. Write the password down: it derives your encryption keys, and nobody can reset it.
3. Follow the setup screens. Tick **close registration** if the instance is only for people you invite; otherwise anyone with the URL can sign up.

**Limits and resources.** New accounts get 50 MB and single uploads are capped at 20 MB; change them in the Admin panel, or set `CRYPTPAD_DEFAULT_STORAGE_MB` / `CRYPTPAD_MAX_UPLOAD_MB` on the CryptPad service, and grow the volume to match. The server is tuned to one worker per pool and idles at about 200 MB, so it runs on a 0.5 GB plan; large office files convert in the browser, not on the server.

**Custom domains.** Add a domain to each service, then set `CRYPTPAD_ORIGIN` and `CRYPTPAD_SANDBOX_ORIGIN` on the CryptPad service to the two `https://` addresses. They must differ. Links shared on the old main address stop working after the change.

**Updates.** The services build from the template's GitHub repo, which pins CryptPad by version and digest. When a new CryptPad release is tested there, Railway shows an update notice on your project and you choose when to apply it. Read the repo's `CHANGELOG.md` first. Your data on the volume is kept.

**Licence.** CryptPad and its office editors (based on Euro-Office and ONLYOFFICE) are AGPL-3.0.

## Why Deploy CryptPad 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 CryptPad 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)
- [Double Commander in your browser](https://railway.com/deploy/double-commander-in-your-browser) — The Double Commander file manager in the cloud, from any device

Open this page in a browser: https://railway.com/deploy/cryptpad-1
