aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-12-08 13:32:47 +0100
committerAlex Auvolat <alex@adnab.me>2021-12-08 13:32:47 +0100
commit3693d9f36bea5a6884737231aef3417a661df3dd (patch)
tree347e7c82d6f4720284d252ddd6bcb90121fa6157
parenta4982c6cd6b8cd2cffdda1c4cabd12a4c47bdb1a (diff)
downloadinfrastructure-3693d9f36bea5a6884737231aef3417a661df3dd.tar.gz
infrastructure-3693d9f36bea5a6884737231aef3417a661df3dd.zip
Traefik on all servers
-rw-r--r--app/frontend/deploy/frontend-traefik.hcl10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/frontend/deploy/frontend-traefik.hcl b/app/frontend/deploy/frontend-traefik.hcl
index be22df6..a9548f5 100644
--- a/app/frontend/deploy/frontend-traefik.hcl
+++ b/app/frontend/deploy/frontend-traefik.hcl
@@ -3,7 +3,17 @@ job "frontend" {
type = "service"
priority = 80
+ update {
+ max_parallel = 1
+ stagger = "1m"
+ }
+
group "traefik" {
+ count = 3
+ constraint {
+ operator = "distinct_hosts"
+ value = "true"
+ }
network {
port "http_port" { static = 80 }