Deploy Outline
Open-source team wiki and knowledge base. Pinned v1.13, no setup prompts
Just deployed
/var/lib/outline/data
Redis
Just deployed
/data
Just deployed
/var/lib/postgresql/data
Deploy and Host Outline on Railway
Outline is an open-source knowledge base and wiki for teams. It gives you a fast, collaborative editor with Markdown shortcuts, real-time co-editing, nested documents in collections, full-text search, comments, public share links, imports from Notion and Markdown, an API and an MCP server for AI tools.
About Hosting Outline
Outline is a Node.js server that needs PostgreSQL for documents and users, Redis for caching, queues and real-time collaboration, and a place to keep uploaded files. This template runs the official Outline 1.13.0 image, pinned by digest and built from a public GitHub repo, next to Railway's Postgres and Redis on the private network. Uploads go to a volume. Secrets are generated per deploy, the public HTTPS domain is set for you, and database migrations run on every start. There is nothing to fill in. After the deploy, open the URL, create your workspace and admin account on the setup screen, then add a passkey to sign in again later.
Common Use Cases
- Internal team wiki and company handbook
- Engineering documentation, runbooks and onboarding guides
- Self-hosted replacement for Notion or Confluence, with public share links for external docs
Dependencies for Outline Hosting
- PostgreSQL (Railway Postgres, included)
- Redis (Railway Redis, included)
Deployment Dependencies
- Outline source and releases: https://github.com/outline/outline/releases/tag/v1.13.0
- Outline self-hosting docs: https://docs.getoutline.com/s/hosting
- Template repo (Dockerfile, start script, changelog): https://github.com/aalfath/outline-wiki-railway-template
Implementation Details
First sign-in. A fresh Outline shows a setup screen that creates the workspace and its first admin and signs you in. No identity provider or mail server is needed. Open the URL as soon as the deploy is live: until the workspace exists, anyone with the URL could create it. Then go to Settings, Passkeys and add a passkey, so you can sign in again on any device.
Inviting teammates. Members need a way to sign in. Add an email server on the Outline service (SMTP_HOST, SMTP_PORT, SMTP_USERNAME, SMTP_PASSWORD, SMTP_FROM_EMAIL) for magic-link sign-in, or a single sign-on provider (OIDC_CLIENT_ID, OIDC_CLIENT_SECRET, OIDC_AUTH_URI, OIDC_TOKEN_URI, OIDC_USERINFO_URI, or the Google, Slack, Microsoft, Discord or GitHub variables). Callback URLs are https://YOUR-DOMAIN/auth/oidc.callback and similar; see Outline's authentication docs.
Storage. Attachments are stored on the volume at /var/lib/outline/data. To use S3-compatible storage instead, set FILE_STORAGE=s3 and the AWS_* variables.
Custom domain. If you add your own domain, set URL to https://YOUR-DOMAIN and redeploy.
Updates. The Outline service builds from the template repo. When a newer Outline version is pinned there, Railway offers you the update; read the changelog in the repo first.
Why Deploy Outline 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 Outline 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