forked from sstent/minihass
working
This commit is contained in:
43
nomad/minihass.nomad.hcl
Normal file
43
nomad/minihass.nomad.hcl
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user