From fdaf85a43f6f2ad98c5004bfeeddfd1a92097fb3 Mon Sep 17 00:00:00 2001 From: Mathias Magnusson Date: Mon, 11 Dec 2023 00:39:19 +0100 Subject: =?UTF-8?q?Add=20h=C3=B6vd.ing=20site?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "jobs/h\303\266vd.ing/h\303\266vd.ing.nomad.hcl" | 62 ++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 "jobs/h\303\266vd.ing/h\303\266vd.ing.nomad.hcl" (limited to 'jobs/hövd.ing/hövd.ing.nomad.hcl') diff --git "a/jobs/h\303\266vd.ing/h\303\266vd.ing.nomad.hcl" "b/jobs/h\303\266vd.ing/h\303\266vd.ing.nomad.hcl" new file mode 100644 index 0000000..dd06924 --- /dev/null +++ "b/jobs/h\303\266vd.ing/h\303\266vd.ing.nomad.hcl" @@ -0,0 +1,62 @@ +job "hövd.ing" { + group "web" { + count = 1 + + network { + port "http" { + to = 80 + } + } + + service { + name = "hovding" + port = "http" + provider = "nomad" + + tags = [ + "nginx.hostname=.xn--hvd-sna.ing", + "nginx.certname=xn--hvd-sna.ing", + ] + } + + task "web" { + driver = "docker" + + resources { + cpu = 50 + memory = 20 + } + + config { + image = "nginx:1.25-alpine" + ports = ["http"] + + volumes = [ + "local/config:/etc/nginx/conf.d", + "local/html:/var/www/html", + ] + } + + template { + data = <