job "devops-dash" { datacenters = ["dc1"] type = "service" constraint { attribute = "${node.unique.name}" value = "autobox.i80.dk" } group "devops-dash" { count = 1 network { port "http" {} } # host volume disabled until autobox is configured. # To enable: add to /etc/nomad.d/client.hcl on autobox: # host_volume "devops-mcp-data" { # path = "/opt/devops-mcp/data" # read_only = false # } # Then: mkdir -p /opt/devops-mcp/data && systemctl restart nomad # # volume "devops-mcp-data" { # type = "host" # read_only = true # source = "devops-mcp-data" # } task "devops-dash" { driver = "docker" # volume_mount { # volume = "devops-mcp-data" # destination = "/data" # read_only = true # } config { image = "registry.i80.dk/gitea/devops-dash:latest" ports = ["http"] force_pull = true auth { username = "robot$gitserver" password = "${HARBOR_ROBOT_TOKEN}" } } template { data = <