From a4982c6cd6b8cd2cffdda1c4cabd12a4c47bdb1a Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 8 Dec 2021 13:28:22 +0100 Subject: [PATCH] last tricot version --- app/frontend/deploy/frontend-tricot.hcl | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/app/frontend/deploy/frontend-tricot.hcl b/app/frontend/deploy/frontend-tricot.hcl index 01b7097..6955bbb 100644 --- a/app/frontend/deploy/frontend-tricot.hcl +++ b/app/frontend/deploy/frontend-tricot.hcl @@ -1,6 +1,6 @@ job "frontend" { datacenters = ["dc1", "neptune"] - type = "system" + type = "service" priority = 90 update { @@ -9,6 +9,12 @@ job "frontend" { } group "tricot" { + count = 3 + constraint { + operator = "distinct_hosts" + value = "true" + } + network { port "http_port" { static = 80 } port "https_port" { static = 443 } @@ -19,7 +25,7 @@ job "frontend" { driver = "docker" config { - image = "lxpz/amd64_tricot:4" + image = "lxpz/amd64_tricot:7" network_mode = "host" readonly_rootfs = true ports = [ "http_port", "https_port", "admin_port" ] @@ -41,7 +47,7 @@ job "frontend" { data = <