Job examples for mqtt & node-red

Hi everyone - new to nomad and looking for examples of how to deploy an mqtt server and node-red on my cluster. Been looking around but cant find any. Thought I should ask here. I am starting to setup my homelab on nomad. thx

Didn’t test it yet, but something like this should be a good starting point.

job "mosquitto" {
  datacenters = ["dc1"]
  type = "service"

  group "mosquitto" {
    count = 1
	
    network {
      port "mqtt" {
        to = 1883
      }
    }

    task "mosquitto" {
      driver = "docker"

      config {
        image = "eclipse-mosquitto:2.0.18"
        ports = ["mqtt"]
      }
    }
  }
}