From 06ed80dc22c0a5c466689fb29554e45dc47ff9d8 Mon Sep 17 00:00:00 2001 From: wizzdom Date: Sun, 18 Feb 2024 22:15:16 +0000 Subject: [PATCH] add postgres job 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 = <