job "dashboard-nomad" { datacenters = ["ap-south-1a"] type = "service" update { max_parallel = 1 min_healthy_time = "10s" healthy_deadline = "3m" auto_revert = false canary = 0 } group "dashboard-nomad" { count = 1 restart { attempts = 10 interval = "5m" delay = "25s" mode = "delay" } ephemeral_disk { size = 300 } network { mode = "bridge" port http {to=9002} } task "dashboard-nomad" { driver = "docker" config { image = "hashicorp/dashboard-service:0.0.4" ports = ["http"] } env { COUNTING_SERVICE_URL="global-counting-check.service.consul:9001" } resources { cpu = 500 # 500 MHz memory = 256 # 256MB } constraint { attribute = "${attr.consul.version}" operator = "semver" value = ">= 1.9.0" } } service { name = "global-dashboard-check" tags = ["global", "dashboard", "urlprefix-/dashboard" ] port = "http" connect { sidecar_service { proxy { upstreams { destination_name = "global-counting-check" local_bind_port = 9001 } } } } } } }