diff --git a/blueprints/hedgedoc/docker-compose.yml b/blueprints/hedgedoc/docker-compose.yml new file mode 100644 index 00000000..8ee2e567 --- /dev/null +++ b/blueprints/hedgedoc/docker-compose.yml @@ -0,0 +1,37 @@ +version: "3.8" + +services: + hedgedoc: + image: quay.io/hedgedoc/hedgedoc:1.10.8 + restart: unless-stopped + depends_on: + database: + condition: service_healthy + environment: + - CMD_DB_URL=${CMD_DB_URL} + - CMD_DOMAIN=${CMD_DOMAIN} + - CMD_PROTOCOL_USESSL=${CMD_PROTOCOL_USESSL} + - CMD_URL_ADDPORT=${CMD_URL_ADDPORT} + volumes: + - hedgedoc_uploads:/hedgedoc/public/uploads + expose: + - "3000" + + database: + image: postgres:17.7-alpine + restart: unless-stopped + environment: + - POSTGRES_USER=hedgedoc + - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} + - POSTGRES_DB=hedgedoc + volumes: + - hedgedoc_database:/var/lib/postgresql/data + healthcheck: + test: ["CMD-SHELL", "pg_isready -U hedgedoc -d hedgedoc"] + interval: 10s + timeout: 5s + retries: 5 + +volumes: + hedgedoc_uploads: + hedgedoc_database: diff --git a/blueprints/hedgedoc/hedgedoc.svg b/blueprints/hedgedoc/hedgedoc.svg new file mode 100644 index 00000000..0d236216 --- /dev/null +++ b/blueprints/hedgedoc/hedgedoc.svg @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + diff --git a/blueprints/hedgedoc/template.toml b/blueprints/hedgedoc/template.toml new file mode 100644 index 00000000..8e82e9d5 --- /dev/null +++ b/blueprints/hedgedoc/template.toml @@ -0,0 +1,16 @@ +[variables] +main_domain = "${domain}" +database_password = "${password:32}" + +[config] +[[config.domains]] +serviceName = "hedgedoc" +port = 3000 +host = "${main_domain}" + +[config.env] +POSTGRES_PASSWORD = "${database_password}" +CMD_DB_URL = "postgres://hedgedoc:${database_password}@database:5432/hedgedoc" +CMD_DOMAIN = "${main_domain}" +CMD_PROTOCOL_USESSL = "true" +CMD_URL_ADDPORT = "false" diff --git a/meta.json b/meta.json index 80889bb6..f20f46d6 100644 --- a/meta.json +++ b/meta.json @@ -3106,6 +3106,25 @@ "self-hosted" ] }, + { + "id": "hedgedoc", + "name": "HedgeDoc", + "version": "1.10.8", + "description": "HedgeDoc is a collaborative Markdown editor for teams that need real-time notes, documentation, and knowledge sharing.", + "logo": "hedgedoc.svg", + "links": { + "github": "https://github.com/hedgedoc/hedgedoc", + "website": "https://hedgedoc.org/", + "docs": "https://docs.hedgedoc.org/" + }, + "tags": [ + "markdown", + "notes", + "documentation", + "collaboration", + "wiki" + ] + }, { "id": "hermes", "name": "Hermes",