---
title: "Deploy ONLYOFFICE Docs"
description: "ONLYOFFICE Docs 10 online editors for docs, sheets, slides and PDF"
category: "Other"
url: https://railway.com/deploy/onlyoffice-docs-1
---

# Deploy ONLYOFFICE Docs

ONLYOFFICE Docs 10 online editors for docs, sheets, slides and PDF

**[Deploy ONLYOFFICE Docs on Railway](https://railway.com/template/onlyoffice-docs-1)**

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

- **Creator:** Agaz Self-Host
- **Category:** Other
- **Total deploys:** 2

## Template content

### ONLYOFFICE Docs https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/onlyoffice.png

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

## Documentation

# Deploy and Host ONLYOFFICE Docs on Railway

ONLYOFFICE Docs (Document Server) is an open-source online office suite with editors for text documents, spreadsheets, presentations, forms and PDF, compatible with Microsoft Office formats. It has no file manager of its own: apps such as Nextcloud, Seafile, ownCloud or Moodle connect to it to open and co-edit files.

## About Hosting ONLYOFFICE Docs

This template runs ONLYOFFICE Docs Community Edition 10.0.0, built from the official `onlyoffice/documentserver` image pinned by version and digest. Everything runs in a single service: nginx, the document service and the converter. A Railway volume at `/data` holds the WOPI keys, the document cache and any custom fonts, so they survive redeploys. JWT is on, with a secret generated for each deploy, so only apps that know the secret can open documents. The first boot takes about three minutes while it builds font and script caches. Plan for about 1 GB of RAM.

## Common Use Cases

* Edit and co-edit Office documents inside Nextcloud, Seafile, ownCloud or Moodle
* Add document, spreadsheet and presentation editing to your own web app through the ONLYOFFICE API
* Convert documents between formats (DOCX, XLSX, PPTX, PDF, ODT and more) with the conversion API

## Dependencies for ONLYOFFICE Docs Hosting

* A Railway volume for the document cache and keys (included)
* An app that connects to ONLYOFFICE Docs (for example Nextcloud with the ONLYOFFICE connector)

### Deployment Dependencies

* [ONLYOFFICE DocumentServer on GitHub](https://github.com/ONLYOFFICE/DocumentServer) (release v10.0.0)
* [Official Docker image and settings](https://github.com/ONLYOFFICE/Docker-DocumentServer)
* [Template source: aalfath/onlyoffice-railway-template](https://github.com/aalfath/onlyoffice-railway-template)

### Implementation Details

After deploy:

1. Wait until `https://YOUR-DOMAIN/healthcheck` answers `true`. `https://YOUR-DOMAIN/welcome/` shows the welcome page.
2. Copy the service's `JWT_SECRET` variable.
3. In your app's ONLYOFFICE connector (in Nextcloud: Administration settings, then ONLYOFFICE), set the Document Server address to `https://YOUR-DOMAIN/` and the secret key to `JWT_SECRET`.

Variables: `JWT_SECRET` (generated) and `PORT` (80). There is nothing to fill in when you deploy. Optional upstream settings, such as `WOPI_ENABLED=true`, or `ALLOW_PRIVATE_IP_ADDRESS=true` when your app reaches ONLYOFFICE over Railway's private network, can be added later as service variables.

Updates: the service builds from the template's GitHub repo. When we move to a new ONLYOFFICE release, Railway shows an "update available" notice in your project, and you choose when to apply it. The changelog is in the repo, and your volume stays as it is.

ONLYOFFICE Docs Community Edition is licensed under AGPL-3.0.

## Why Deploy ONLYOFFICE Docs 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 ONLYOFFICE Docs 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/onlyoffice-docs-1
