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 {
image = "farmos/farmos:2.1.2"
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 {
@@ -23,7 +26,7 @@ job "farmos" {
check {
type = "http"
port = "http"
path = "/"
path = "/health"
interval = "30s"
timeout = "2s"
}