job "postgres" { datacenters = ["aperture"] constraint { attribute = "${attr.unique.hostname}" value = "wheatley" } group "db" { network { port "db" { static = 5432 } } task "postgres-db" { driver = "docker" template { data = <