Setup typesense.

This commit is contained in:
2024-10-17 19:28:21 +01:00
parent 72006bf2c1
commit af23723c86

View File

@@ -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"
}
}
}
} }