From a070bdd5283e20ba9b1cda03b5ce82370b04ede2 Mon Sep 17 00:00:00 2001 From: natto1784 Date: Sun, 6 Feb 2022 23:05:08 +0530 Subject: [PATCH] finally back, added a nomad job file --- singh3.nomad | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 singh3.nomad diff --git a/singh3.nomad b/singh3.nomad new file mode 100644 index 0000000..c86508e --- /dev/null +++ b/singh3.nomad @@ -0,0 +1,63 @@ +job "singh3" { + region = "global" + datacenters = [ "nazrin" ] + type = "service" + group "svc" { + count = 1 + network { + mode = "bridge" + port "db" { + to = 5432 + } + } + vault { + policies = [ "singh3-policy" ] + } + service { + name = "singh3-db" + port = "db" + } + task "db" { + template { + data = <