forked from sstent/minihass
44 lines
713 B
HCL
44 lines
713 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"]
|
|
platform = "linux/${attr.cpu.arch}"
|
|
}
|
|
|
|
env {
|
|
CONSUL_HOST = "consul.service.dc1.consul"
|
|
CONSUL_PORT = "8500"
|
|
}
|
|
|
|
resources {
|
|
cpu = 500
|
|
memory = 256
|
|
}
|
|
}
|
|
}
|
|
} |