job "go-echo-svc" { datacenters = ["dc1"] group "go-echo" { network { mode = "bridge" } service { name = "go-echo-svc" port = "12702" task = "go-echo" connect { sidecar_service { } sidecar_task { config { image = "${meta.connect.sidecar_image}" # "${meta.connect.gateway_image}" when used as a gateway args = [ "-c", "${NOMAD_SECRETS_DIR}/envoy_bootstrap.json", "-l", "debug", "--concurrency", "${meta.connect.proxy_concurrency}", "--disable-hot-restart" ] } } } } task "go-echo"{ env { TCP_PORT="12702" NODE_NAME="EchoNode-2" } driver = "docker" config { image = "cjimti/go-echo" } } } }