Working healthcheck endpoint, and try to persist custom modules.

This commit is contained in:
2023-08-18 11:40:06 +01:00
parent 5505dca69c
commit ccd0061b89

View File

@@ -14,7 +14,10 @@ job "farmos" {
config { config {
image = "farmos/farmos:2.1.2" image = "farmos/farmos:2.1.2"
ports = ["http"] ports = ["http"]
volumes = [ "/data/compute/appdata/farmos:/opt/drupal/web/sites" ] volumes = [
"/data/compute/appdata/farmos:/opt/drupal/web/sites",
"/data/compute/appdata/farmos/custom-modules:/opt/drupal/web/modules/custom",
]
} }
service { service {
@@ -23,7 +26,7 @@ job "farmos" {
check { check {
type = "http" type = "http"
port = "http" port = "http"
path = "/" path = "/health"
interval = "30s" interval = "30s"
timeout = "2s" timeout = "2s"
} }