Deploy CryptPad

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

Deploy CryptPad

/data

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

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.


Template Content

More templates in this category

View Template
Rocky Linux
Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀

codestorm
51
View Template
Foundry Virtual Tabletop
Self-hosted virtual tabletop for role-playing games (license required)

Lucas
71
View Template
NEW
Double Commander in your browser
The Double Commander file manager in the cloud, from any device

Nermin Sabanovic
0