Files
minihass/nomad/minihass.nomad.hcl
2025-09-20 10:58:44 -07:00

43 lines
669 B
HCL

job "minihass" {
datacenters = ["dc1"]
group "smart-home" {
network {
mode = "host"
port "http" {
to = 5000
}
}
service {
name = "minihass"
port = "http"
check {
type = "http"
path = "/health"
interval = "30s"
timeout = "5s"
}
}
task "app" {
driver = "docker"
config {
image = "ghcr.io/sstent/MiniHASS:latest"
ports = ["http"]
}
env {
CONSUL_HOST = "consul.service.dc1.consul"
CONSUL_PORT = "8500"
}
resources {
cpu = 500
memory = 256
}
}
}
}