Deploy hedgedoc

HedgeDoc 1.12: real-time collaborative Markdown notes, with Postgres.

Deploy hedgedoc

Just deployed

/hedgedoc/public/uploads

/var/lib/postgresql/data

Deploy and Host HedgeDoc on Railway

HedgeDoc is a collaborative Markdown editor that runs in the browser. Several people can edit the same note at once and see changes live, with a side-by-side preview that supports diagrams, math, code highlighting and slide mode. Notes can be shared by link, published read-only or kept private.

About Hosting HedgeDoc

This template runs the official quay.io/hedgedoc/hedgedoc:1.12.0 image with a Railway PostgreSQL database. On first boot a seed step creates your account from the variables once the database is ready. Email sign-up and anonymous notes are turned off, so only accounts you create can write notes. Notes live in Postgres and uploaded images on a Railway volume, so both survive redeploys. The session secret is generated and stable, which keeps people signed in across restarts. HedgeDoc is light on resources and fits the Hobby plan. Add teammates with bin/manage_users from a Railway shell.

Common Use Cases

  • Live meeting notes that the whole team edits together
  • Drafting documentation or blog posts in Markdown before publishing
  • Presenting slides written in Markdown from the browser

Dependencies for HedgeDoc Hosting

  • quay.io/hedgedoc/hedgedoc:1.12.0 (official image)
  • Railway PostgreSQL
  • A Railway volume at /hedgedoc/public/uploads

Deployment Dependencies

Implementation Details

ServiceSourceNetworkingStorage
hedgedocquay.io/hedgedoc/hedgedoc:1.12.0public domain on 3000volume at /hedgedoc/public/uploads
PostgresRailway PostgreSQLprivateRailway volume
VariableDefaultPurpose
HEDGEDOC_ADMIN_EMAILadmin@example.comFirst account, created on first boot
HEDGEDOC_ADMIN_PASSWORDgeneratedIts password
CMD_ALLOW_EMAIL_REGISTERfalseCloses self sign-up
CMD_ALLOW_ANONYMOUSfalseRequires login to create notes
CMD_SESSION_SECRETgeneratedSigns session cookies
CMD_DOMAIN${{RAILWAY_PUBLIC_DOMAIN}}Public hostname

Notes:

  • Add users from the Railway shell: node bin/manage_users --add user@example.com --pass .
  • To allow self sign-up instead, set CMD_ALLOW_EMAIL_REGISTER=true.

This is a community-maintained deployment package and does not imply affiliation with or endorsement by the HedgeDoc project.

Why Deploy HedgeDoc 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 HedgeDoc 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
Libredesk - Complete Setup
Complete self-hosted omnichannel customer support desk.

codestorm
2
View Template
Paperless-ngx
Paperless-ngx — document management with OCR and full-text search

INAPP
1
View Template
Instatic CMS - Postgres
Design, build and manage powerful static sites from state-of-the-art CMS

Instatic
166