From af23723c86f1cf4383e4fa5d87736fe2eca23d9b Mon Sep 17 00:00:00 2001 From: Petru Paler Date: Thu, 17 Oct 2024 19:28:21 +0100 Subject: [PATCH] Setup typesense. --- services/vikunja.hcl | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/services/vikunja.hcl b/services/vikunja.hcl index 6deeb58..aa9a9aa 100644 --- a/services/vikunja.hcl +++ b/services/vikunja.hcl @@ -37,4 +37,40 @@ job "vikunja" { } } } + + group "search" { + network { + port "http" { + static = 8108 + } + } + + task "typesense" { + driver = "docker" + + config { + image = "typesense/typesense:27.1" + ports = ["http"] + volumes = [ + "/data/compute/appdata/vikunja/typesense:/data", + ] + } + + env { + TYPESENSE_DATA_DIR = "/data" + # FIXME: this should probably be more restricted + TYPESENSE_API_KEY = "NRVgtCc6cmYuPbq4flmS" + TYPESENSE_ENABLE_CORS = "true" + } + + resources { + memory = 1024 + } + + service { + name = "typesense" + port = "http" + } + } + } }