HedgeDoc
★ 7.5kA self-hosted alternative to Notion, Google Docs
About
Community Ratings
No ratings yetNew this week
Read recap →Features
- real-time collaborative markdown notes
- demo instance
- alpha demo
- development environment setup
Details
- Last Updated
- Nov 26, 2026
- Created
- Mar 27, 2019
- Install Methods
- source
- Runtime / Stack
- DockerNodejs
- Privacy & Independence
- No Cloud Required
- User Model
- Multi-User
- Deployment
Deployment: Docker Compose ✓4 Containers — moderate hosting footprintRuns as 4 containers
Run HedgeDoc yourself
Pick how much you want to manage.
HostingerSponsored
One click
Hostinger template, runs in your own Hostinger account.
About 5 minutes to running
RailwayBest match
One click
Railway template, runs in your own Railway account.
About 5 minutes to running
netcup
Full control
A small server, then Docker Compose.
About 20 minutes with Docker
7 more ways to host
HetznerA small server, then Docker Compose.(opens in a new tab)
DigitalOceanA small server, then Docker Compose.(opens in a new tab)
OVHcloudA small server, then Docker Compose.(opens in a new tab)
HostingeraffiliateA small server, then Docker Compose.(opens in a new tab)
ElestioHosted for you, nothing to maintain.(opens in a new tab)
PikaPodsHosted for you, nothing to maintain.(opens in a new tab)YunoHostInstall it from YunoHost on your home server.(opens in a new tab)
Some links earn us a commission. netcup pays us one and is our preferred VPS host. Hostinger is a paid sponsor and is listed first.
Is this your project? Sponsor a listing
Run HedgeDoc with Docker Compose
Compose file from the HedgeDoc project repository.
4 services · database: postgres · infra: postgres, caddy
no resource limits declared
needs persistent storage (5 volumes)
docs/content/files/setup-docker/docker-compose.yml · @ 6e90dd3 · scanned Nov 3, 2026
services:
backend:
image: ghcr.io/hedgedoc/hedgedoc/backend:2.0.0-alpha.3
volumes:
- $PWD/.env:/usr/src/app/backend/.env
- hedgedoc_uploads:/usr/src/app/backend/uploads
frontend:
image: ghcr.io/hedgedoc/hedgedoc/frontend:2.0.0-alpha.3
environment:
HD_BASE_URL: "${HD_BASE_URL}"
HD_INTERNAL_API_URL: http://backend:3000
HOSTNAME: "0.0.0.0"
db:
image: postgres:16
environment:
POSTGRES_USER: "${HD_DATABASE_USERNAME}"
POSTGRES_PASSWORD: "${HD_DATABASE_PASSWORD}"
POSTGRES_DB: "${HD_DATABASE_NAME}"
volumes:
- hedgedoc_postgres:/var/lib/postgresql/data
proxy:
image: caddy:latest
restart: unless-stopped
environment:
HD_BASE_URL: "${HD_BASE_URL}"
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- $PWD/Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
volumes:
caddy_data:
hedgedoc_uploads:
hedgedoc_postgres:
This file may be out of date. Check the HedgeDoc documentation for current setup steps.
Tags
Track your self-hosted stack
Bookmark software to try, rate tools you've used, and keep your collection in one place.
