This commit is contained in:
2025-09-20 09:49:45 -07:00
parent ed8c15dd97
commit d8b4e9b02e
4 changed files with 174 additions and 18 deletions

43
nomad/minihass.nomad.hcl Normal file
View File

@@ -0,0 +1,43 @@
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
}
}
}
}