job "nginx" { datacenters = ["dc1"] group "nginx" { count = 1 network { port "http" { static = 80 } } service { name = "nginx" port = "http" } task "nginx" { driver = "docker" config { ports = ["http"] image = "nginx" volumes = [ "local:/etc/nginx/conf.d", ] } template { data = file("../config/dummy-http-server.tpl") destination = "local/dummy-http-server.conf" change_mode = "signal" change_signal = "SIGHUP" } } } }