Files
alo-cluster/services/farmos.hcl

52 lines
1.0 KiB
HCL

job "farmos" {
datacenters = ["alo"]
group "os" {
network {
port "http" {
to = 80
}
}
task "server" {
driver = "docker"
config {
image = "farmos/farmos:3.0.0-beta2"
ports = ["http"]
volumes = [
"/data/compute/appdata/farmos:/opt/drupal/web/sites",
]
command = "bash"
args = [
"-c",
"composer require drupal/smtp drupal/health_check_url drupal/oauth_login_oauth2 && drush cr && exec docker-entrypoint.sh apache2-foreground"
]
}
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
}
}
}
}