diff options
author | Alex Auvolat <alex@adnab.me> | 2021-12-08 12:42:48 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2021-12-08 12:42:48 +0100 |
commit | 7f08d5f3240bd8e93a9447ec814d7fbd474851b9 (patch) | |
tree | 8325387d3842c7c45786ecaf8c6644381859269f /app/garage | |
parent | 2c2ee6c903a2068da202e9456f6fa7c37833e5d5 (diff) | |
download | infrastructure-7f08d5f3240bd8e93a9447ec814d7fbd474851b9.tar.gz infrastructure-7f08d5f3240bd8e93a9447ec814d7fbd474851b9.zip |
Add tricot tags to everything
Diffstat (limited to 'app/garage')
-rw-r--r-- | app/garage/deploy/garage.hcl | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/app/garage/deploy/garage.hcl b/app/garage/deploy/garage.hcl index 329b0b6..b4df01e 100644 --- a/app/garage/deploy/garage.hcl +++ b/app/garage/deploy/garage.hcl @@ -57,7 +57,8 @@ job "garage" { "garage_api", "traefik.enable=true", "traefik.frontend.entryPoints=https,http", - "traefik.frontend.rule=Host:garage.deuxfleurs.fr" + "traefik.frontend.rule=Host:garage.deuxfleurs.fr", + "tricot garage.deuxfleurs.fr", ] port = 3900 address_mode = "driver" @@ -95,6 +96,28 @@ job "garage" { } } + service { + tags = [ + "garage-web", + "tricot * 1000", + ] + port = 3902 + address_mode = "driver" + name = "garage-web" + check { + type = "tcp" + port = 3902 + address_mode = "driver" + interval = "60s" + timeout = "5s" + check_restart { + limit = 3 + grace = "90s" + ignore_warnings = false + } + } + } + restart { interval = "30m" attempts = 10 |