{
"Format": "hcl2",
"JobID": "nginx",
"JobModifyIndex": 13996170,
"Namespace": "default",
"Source": "job \"nginx\" {\n datacenters = [\"dc1\"]\n type = \"service\"\n group \"nginx\" {\n count = 1\n\n task \"nginx\" {\n driver = \"docker\"\n\n config {\n image = \"nginx\"\n ports = [\"http\"]\n\n volumes = [\n \"custom/default.conf:/etc/nginx/conf.d/default.conf\",\n ]\n }\n\n template {\n data = <
| Service Name | \nTraefik | \nDirect | \n
|---|---|---|
| {{.Name}} | \n{{.Name}}.service.dc1.consul | \n{{ if eq .Name \"unifi\" }}https{{else}}http{{end}}://{{.Name}}.service.dc1.consul:{{.Port}} | \n
\n Node Environment Information:
\n node_id: {{ env \"node.unique.id\" }}
\n datacenter: {{ env \"NOMAD_DC\" }}\n