job "faas-nomadd" { datacenters = ["dc1"] type = "system" constraint { attribute = "${attr.cpu.arch}" operator = "=" value = "amd64" } group "faas-nomadd" { count = 1 restart { attempts = 10 interval = "5m" delay = "25s" mode = "delay" } task "nomadd" { driver = "docker" config { image = "quay.io/nicholasjackson/faas-nomad:v0.4.3-rc2" args = [ "-nomad_region", "${NOMAD_REGION}", "-nomad_addr", "${NOMAD_IP_http}:4646", "-consul_addr", "${NOMAD_IP_http}:8500", "-statsd_addr", "${NOMAD_ADDR_statsd_statsd}", "-node_addr", "${NOMAD_IP_http}", "-basic_auth_secret_path", "/secrets", "-enable_basic_auth=false", "-enable_nomad_tls=true", "-nomad_tls_skip_verify" ] port_map { http = 8080 } } // basic auth from vault example // update -enable_basic_auth=true // uncomment below if you have a Vault instance connected to Nomad // template { // destination = "secrets/basic-auth-user" // data = <