From 8d9e835f64d50abd4bc9a2bc4e7b4ce9d3aebb7a Mon Sep 17 00:00:00 2001 From: wizzdom Date: Sun, 18 Feb 2024 22:21:57 +0000 Subject: [PATCH] add postgres job (#23) Co-authored-by: James Hackett --- jobs/services/postgres.hcl | 96 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 jobs/services/postgres.hcl diff --git a/jobs/services/postgres.hcl b/jobs/services/postgres.hcl new file mode 100644 index 0000000..cf861c6 --- /dev/null +++ b/jobs/services/postgres.hcl @@ -0,0 +1,96 @@ +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 = <