diff options
author | Quentin Dufour <quentin@dufour.io> | 2021-07-02 13:11:29 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@dufour.io> | 2021-07-02 13:11:29 +0200 |
commit | 0a6ffcacd209a1693677f3839d427f471f8fd639 (patch) | |
tree | 17de3675d17568aa1e357939794e17a561ed83a4 /app/garage | |
parent | 2d61f1449dbcb502ba07bda6bdea387fdef2cbda (diff) | |
parent | 80c2f1f7013266335e17d2f5be7096dc25b7206a (diff) | |
download | infrastructure-0a6ffcacd209a1693677f3839d427f471f8fd639.tar.gz infrastructure-0a6ffcacd209a1693677f3839d427f471f8fd639.zip |
Merge branch 'main' of git.deuxfleurs.fr:Deuxfleurs/infrastructure into main
Diffstat (limited to 'app/garage')
-rw-r--r-- | app/garage/deploy/garage.hcl | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/app/garage/deploy/garage.hcl b/app/garage/deploy/garage.hcl index 41e36a0..c3d730e 100644 --- a/app/garage/deploy/garage.hcl +++ b/app/garage/deploy/garage.hcl @@ -35,6 +35,9 @@ job "garage" { "secrets/garage.crt:/garage/garage.crt", "secrets/garage.key:/garage/garage.key", ] + logging { + type = "journald" + } } template { @@ -61,8 +64,8 @@ job "garage" { cpu = 1000 } - kill_signal = "SIGINT" - kill_timeout = "20s" + kill_signal = "SIGINT" + kill_timeout = "20s" service { tags = [ @@ -106,6 +109,13 @@ job "garage" { } } } + + restart { + interval = "30m" + attempts = 10 + delay = "15s" + mode = "delay" + } } } } |