Files
alo-cluster/services/farmos.hcl
2023-11-03 08:15:54 +00:00

48 lines
935 B
HCL

job "farmos" {
datacenters = ["alo"]
group "os" {
network {
port "http" {
to = 80
}
}
task "server" {
driver = "docker"
config {
image = "farmos/farmos:3.0.0-beta1"
ports = ["http"]
volumes = [
"/data/compute/appdata/farmos:/opt/drupal/web/sites",
"/data/compute/appdata/farmos/custom-modules:/opt/drupal/web/modules/custom",
]
}
service {
name = "farmos"
port = "http"
check {
type = "http"
port = "http"
path = "/health"
interval = "30s"
timeout = "2s"
}
tags = [
"traefik.enable=true",
"traefik.http.routers.farmos.entryPoints=websecure",
"traefik.http.routers.farmos.rule=Host(`farm.alo.land`)",
]
}
resources {
cpu = 2000
memory = 1024
}
}
}
}