Skip to content
esc
Type to search the docs
Back to catalog

Hedgedoc

Draft

Collaborative markdown editor

Set up on Launchfile

Choose your app settings, save them to your workspace, then launch on Launchfile hosting. Checking settings does not start a subscription or charge you.

This entry does not have a verified published Launchfile. You can provide your own Launchfile to check its settings.

This step saves your selection. It does not launch an app or start a subscription.

Run locally

Terminal
$ npx launchfile up hedgedoc-v2

Requires Docker Desktop. No source code needed — pulls pre-built images and starts Hedgedoc with all dependencies.

LaunchfileView on GitHub
# yaml-language-server: $schema=https://launchfile.dev/schema/v1
# Build-from-source variant (HedgeDoc 2.x). Parked alongside the verified
# image-based draft in ../hedgedoc/ while the 2.x line stabilizes. HedgeDoc
# 2.x is not yet released as an image.
version: launch/v1
name: hedgedoc
description: "Collaborative markdown editor"
repository: https://github.com/hedgedoc/hedgedoc#develop

components:
  backend:
    runtime: node
    build:
      dockerfile: ./docker/Dockerfile.backend
    provides:
      - name: api
        protocol: http
        port: 3000
        bind: "0.0.0.0"
        spec:
          openapi: file:docs/openapi.yaml
    requires:
      - type: postgres
        version: ">=15"
        set_env:
          HD_DATABASE_URL: $url
          HD_DATABASE_USERNAME: $user
          HD_DATABASE_PASSWORD: $password
          HD_DATABASE_NAME: $name
    env:
      HD_AUTH_SESSION_SECRET:
        generator: secret
        sensitive: true
      HD_BACKEND_BIND_IP:
        default: "0.0.0.0"
    commands:
      start: "node dist/main.js"
      release: "node dist/migrations.js"
    health:
      path: /api/private/config
      start_period: 30s

  frontend:
    runtime: node
    build:
      dockerfile: ./docker/Dockerfile.frontend
    depends_on:
      - component: backend
        condition: healthy
    provides:
      - protocol: http
        port: 3001
        exposed: true
    env:
      HD_BASE_URL:
        default: $components.backend.url
        description: "Backend URL for SSR API calls"

Required Services

postgres

Components

2 components in this Launchfile.

backendfrontend

Learn More

Spec references for features used in this Launchfile.

Related Apps