farmOS config.

This commit is contained in:
2023-08-18 11:05:03 +01:00
parent 162bf26324
commit 5505dca69c

44
services/farmos.hcl Normal file
View File

@@ -0,0 +1,44 @@
job "farmos" {
datacenters = ["alo"]
group "os" {
network {
port "http" {
to = 80
}
}
task "server" {
driver = "docker"
config {
image = "farmos/farmos:2.1.2"
ports = ["http"]
volumes = [ "/data/compute/appdata/farmos:/opt/drupal/web/sites" ]
}
service {
name = "farmos"
port = "http"
check {
type = "http"
port = "http"
path = "/"
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
}
}
}
}