job "MQTT" { datacenters = ["homelab"] priority = 90 type = "service" meta { forcedeploy = "0" } constraint { attribute = "${attr.unique.hostname}" value = "oscar" } group "MQTT" { network { mode = "host" port "zigbee2mqtt" { to = 8090 } port "mosquittoMQTT" { static = 1883 to = 1883 } port "mosquittoWS" { to = 9001 static = 9001 } } task "mosquitto" { driver = "docker" service { name = "mosquitto" port = "mosquittoMQTT" tags = [ ] } config { image = "eclipse-mosquitto" ports = ["mosquittoWS", "mosquittoMQTT"] volumes = [ "/mnt/diskstation/nomad/mosquitto:/mosquitto/data", "local/mosquitto.conf:/mosquitto/config/mosquitto.conf" ] } env { TZ = "Europe/Paris" } template { data = <