53 lines
1.1 KiB
HCL
53 lines
1.1 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/sites:/opt/drupal/web/sites",
|
|
"/data/compute/appdata/farmos/keys:/opt/drupal/keys",
|
|
]
|
|
command = "bash"
|
|
args = [
|
|
"-c",
|
|
"composer require drupal/smtp drupal/health_check_url drupal/oauth_login_oauth2 drupal/simple_oauth_password_grant && 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
|
|
}
|
|
}
|
|
}
|
|
}
|