homelab/nomad-job/decom/deconz.nomad

63 lines
1.3 KiB
Plaintext
Raw Normal View History

2022-05-09 06:50:29 +00:00
job "deconz" {
datacenters = ["homelab"]
type = "service"
meta {
forcedeploy = "0"
}
constraint {
attribute = "${attr.unique.hostname}"
value = "oscar"
}
group "deconz"{
network {
mode = "host"
port "http" {
to = 8124
static = 8124
}
port "ws" {}
}
2022-05-12 09:36:04 +00:00
task "deconz" {
2022-05-09 06:50:29 +00:00
driver = "docker"
service {
name = "deconz"
port = "http"
tags = [
2022-05-23 19:44:34 +00:00
"homer.enable=true",
"homer.name=Deconz",
"homer.service=Application",
"homer.logo=https://tutoriels.domotique-store.fr/images/JeeBox/plugin-zigbee/icone-plugin-zigbee-officiel-jeedom.png?1632754975124",
"homer.target=_blank",
"homer.url=http://${NOMAD_ADDR_http}",
2022-05-09 06:50:29 +00:00
]
}
config {
image = "deconzcommunity/deconz"
2022-09-18 12:48:52 +00:00
ports = ["http","ws"]
2022-05-09 06:50:29 +00:00
privileged = true
volumes = [
"/mnt/diskstation/nomad/deconz:/opt/deCONZ",
"/dev/ttyACM0:/dev/ttyACM0"
]
}
env {
DECONZ_DEVICE = "/dev/ttyACM0"
TZ = "Europe/Paris"
DECONZ_WEB_PORT = "${NOMAD_PORT_http}"
DECONZ_WS_PORT = "${NOMAD_PORT_ws}"
}
2022-05-12 09:36:04 +00:00
resources {
2022-05-23 17:46:10 +00:00
memory = 150
2022-05-12 09:36:04 +00:00
}
2022-05-09 06:50:29 +00:00
}
}
}