job "nginx" { datacenters = ["dc1"] group "nginx" { count = 1 network { port "http" { static = 8080 } } service { name = "nginx" port = "http" } task "nginx" { driver = "docker" config { image = "nginx" ports = ["http"] volumes = [ "local:/etc/nginx/conf.d", ] } template { data = <