From 29d57b8081bb10ad05e1899238c2718160df07cb Mon Sep 17 00:00:00 2001 From: wizzdom Date: Tue, 15 Oct 2024 12:52:46 +0100 Subject: [PATCH] hedgedoc: update to latest, move db, fix backups (#66) --- jobs/services/hedgedoc-backup.hcl | 6 +-- jobs/services/hedgedoc.hcl | 80 ++++++++++++++++--------------- 2 files changed, 45 insertions(+), 41 deletions(-) diff --git a/jobs/services/hedgedoc-backup.hcl b/jobs/services/hedgedoc-backup.hcl index 2b8dedb..7032e79 100644 --- a/jobs/services/hedgedoc-backup.hcl +++ b/jobs/services/hedgedoc-backup.hcl @@ -20,9 +20,9 @@ job "hedgedoc-backup" { data = < "${file}" -find /storage/backups/nomad/postgres/hedgedoc/postgresql-hedgedoc* -ctime +3 -exec rm {} \; || true +find /storage/backups/nomad/hedgedoc/postgresql-hedgedoc* -ctime +3 -exec rm {} \; || true if [ -s "$file" ]; then # check if file exists and is not empty echo "Backup successful" diff --git a/jobs/services/hedgedoc.hcl b/jobs/services/hedgedoc.hcl index f418ed6..56680e5 100644 --- a/jobs/services/hedgedoc.hcl +++ b/jobs/services/hedgedoc.hcl @@ -21,7 +21,7 @@ job "hedgedoc" { check { type = "http" - path = "/" + path = "/_health" interval = "10s" timeout = "2s" } @@ -41,42 +41,51 @@ job "hedgedoc" { task "app" { driver = "docker" - constraint { - attribute = "${attr.unique.hostname}" - value = "chell" - } - config { - image = "quay.io/hedgedoc/hedgedoc:1.6.0" + image = "quay.io/hedgedoc/hedgedoc:1.10.0" ports = ["http"] } template { data = <