---
title: "Deploy Docmost Wiki and Docs (Postgres, Redis, S3 Bucket)"
description: "Real-time collaborative wiki with spaces; owner preset, files in Bucket."
category: "Other"
url: https://railway.com/deploy/docmost-wiki-and-docs-postgres-redis-s3-
---

# Deploy Docmost Wiki and Docs (Postgres, Redis, S3 Bucket)

Real-time collaborative wiki with spaces; owner preset, files in Bucket.

**[Deploy Docmost Wiki and Docs (Postgres, Redis, S3 Bucket) on Railway](https://railway.com/template/docmost-wiki-and-docs-postgres-redis-s3-)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/docmost-wiki-and-docs-postgres-redis-s3-/manifest.json

- **Creator:** Tracklayer
- **Category:** Other
- **Total deploys:** 2

## Template content

### Docmost https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/docmost.png

- **Source:** baranberkay96/docmost-railway
- **Health check:** /api/health
- **Public domain:** Yes

### Redis https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg

- **Image:** redis:8.2.11@sha256:b0b01167ff47bc3868e56a967895a26be4230891a1f42a78ab61cdd227accc8d
- **Start command:** `/bin/sh -c "rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH"`

### Postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:18.6@sha256:4fc833b43d2aaf6ecc9b18615f5533602b723a32d0e2efe2dae8ca0f7217c863

## Buckets

- **Bucket**

## Documentation

# Deploy and Host Docmost with Railway

Docmost is an open-source collaborative wiki and documentation tool, an alternative to Confluence and Notion: spaces, nested pages, real-time co-editing, comments, page history, diagrams (Draw.io, Excalidraw, Mermaid) and permissions. This template runs Docmost with PostgreSQL 18, Redis and a Railway Bucket for files, with your workspace and owner account created on the first deploy.

## About Hosting Docmost

Docmost needs PostgreSQL for content, Redis for real-time collaboration and background jobs, and file storage for attachments. On a fresh database it shows an open "create workspace" page, and whoever submits it first owns the instance. This template creates the workspace and the owner from your variables in a pre-deploy step on a private port, before the public site serves.

Attachments go to a private Railway Bucket through Docmost's S3 driver, so the Docmost service has no volume and redeploys without data loss. New members join through workspace invitations.

## Common Use Cases

- Company wiki and knowledge base organised in spaces
- Product, engineering and API documentation edited together in real time
- Meeting notes, project pages and decision records with comments
- Replacing Confluence or Notion with a self-hosted tool
- Client or team handbooks with page-level permissions

## Dependencies for Docmost Hosting

- Docmost 0.98.0 (official image, pinned by digest)
- PostgreSQL 18 (Railway's `postgres-ssl` image)
- Redis 8.2
- A Railway Bucket for attachments

### Deployment Dependencies

- Docmost source: https://github.com/docmost/docmost
- Self-hosting docs: https://docmost.com/docs/self-hosting/overview
- Environment variables: https://docmost.com/docs/self-hosting/environment-variables
- Railway Buckets: https://docs.railway.com/guides/storage-buckets

### Implementation Details

| Service | What it does | Public |
|---|---|---|
| Docmost | Web app, API and real-time collaboration; pre-deploy creates the workspace and owner | yes |
| Postgres | Pages, users, spaces, history | no |
| Redis | Collaboration sync, queues, cache | no |
| Bucket | Attachments and images (private, served through Docmost) | no |

**First login**

1. Before deploying, set `DOCMOST_ADMIN_EMAIL` to your address (default `admin@example.com`) and optionally `DOCMOST_WORKSPACE_NAME`.
2. Open the Docmost URL and sign in with `DOCMOST_ADMIN_EMAIL` and the generated `DOCMOST_ADMIN_PASSWORD` from the Docmost service's Variables tab.
3. Invite members under Settings > Members. Without e-mail you can copy the invitation link and send it yourself.

**Owner password.** The variables are used once, on the first deploy; change the password later in Account settings. A password shorter than 12 characters is not applied: the owner is then locked with a random password, and you reset it with "Forgot password" (needs e-mail) or by redeploying on an empty database.

**E-mail.** Invitations and password resets need a mail driver. Railway allows SMTP only on Pro; on other plans use Postmark's HTTP API (`MAIL_DRIVER=postmark`, `POSTMARK_TOKEN`) and set `MAIL_FROM_ADDRESS`.

**Custom domain.** Add it to the Docmost service and set `APP_URL` to `https://{your-domain}`, then redeploy.

**Scaling and versions.** Run one Docmost replica (real-time collaboration state is coordinated through Redis, but upstream documents a single instance). The image is pinned by digest in `services/docmost/Dockerfile`. To upgrade, change the tag and digest, back up Postgres and redeploy; migrations run automatically on start.

**Resources.** Measured idle on Railway: Docmost 0.28 GB, Postgres 0.06–0.12 GB, Redis 0.05 GB; about 0.4–0.45 GB in total, roughly $4–5 per month plus Bucket storage. Runs on the Trial plan.

**License.** Docmost's core is AGPL-3.0. Enterprise features in the `ee` folders need a commercial license key and stay inactive without one. This is a community template, not affiliated with Docmost.

### Why Deploy Docmost on Railway?

Railway runs Docmost, PostgreSQL, Redis and file storage in one project with private networking and HTTPS. Your workspace and owner exist before anyone else can reach the site, files live in a Bucket instead of a single volume, and you can add a domain or more resources from the dashboard.


## 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/docmost-wiki-and-docs-postgres-redis-s3-
