Setup typesense.
This commit is contained in:
@@ -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user