job "hello-world" { datacenters = ["*"] meta { foo = "bar" } group "servers" { count = 1 network { port "www" { to = 8001 } } service { provider = "nomad" port = "www" } task "web" { driver = "docker" config { image = "busybox:1" command = "httpd" args = ["-v", "-f", "-p", "${NOMAD_PORT_www}", "-h", "/local"] ports = ["www"] } template { data = <<-EOF