From 60dc1b21a1fdbebae663790e1e07afe704758d61 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sat, 25 Dec 2021 19:40:51 +0100 Subject: Add hcl files in here for staging cluster --- app/frontend/deploy/frontend-tricot.hcl | 67 +++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 app/frontend/deploy/frontend-tricot.hcl (limited to 'app/frontend') diff --git a/app/frontend/deploy/frontend-tricot.hcl b/app/frontend/deploy/frontend-tricot.hcl new file mode 100644 index 0000000..d36cce7 --- /dev/null +++ b/app/frontend/deploy/frontend-tricot.hcl @@ -0,0 +1,67 @@ +job "frontend" { + datacenters = ["neptune"] + type = "service" + priority = 90 + + group "tricot" { + constraint { + attribute = "${attr.unique.hostname}" + operator = "=" + value = "carcajou" + } + + network { + port "http_port" { static = 80 } + port "https_port" { static = 443 } + port "admin_port" { static = 8082 } + } + + task "server" { + driver = "docker" + + config { + image = "lxpz/amd64_tricot:25" + network_mode = "host" + readonly_rootfs = true + ports = [ "http_port", "https_port", "admin_port" ] + } + + resources { + cpu = 2000 + memory = 200 + } + + restart { + interval = "30m" + attempts = 2 + delay = "15s" + mode = "delay" + } + + template { + data = <