aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2021-06-30 12:57:13 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2021-06-30 12:57:13 +0200
commit784efbcc9b19770cba03a5b539bcd1c924fc7d03 (patch)
treed643587f7766dbe81e8816c8fc9ee884623548ca
parent2d30e1a9c7254e2769d1e11a5e7ab54b34f8b77a (diff)
downloadinfrastructure-784efbcc9b19770cba03a5b539bcd1c924fc7d03.tar.gz
infrastructure-784efbcc9b19770cba03a5b539bcd1c924fc7d03.zip
Add a restart policy
-rw-r--r--app/garage/deploy/garage.hcl11
1 files changed, 9 insertions, 2 deletions
diff --git a/app/garage/deploy/garage.hcl b/app/garage/deploy/garage.hcl
index b5b8bf1..c3d730e 100644
--- a/app/garage/deploy/garage.hcl
+++ b/app/garage/deploy/garage.hcl
@@ -64,8 +64,8 @@ job "garage" {
cpu = 1000
}
- kill_signal = "SIGINT"
- kill_timeout = "20s"
+ kill_signal = "SIGINT"
+ kill_timeout = "20s"
service {
tags = [
@@ -109,6 +109,13 @@ job "garage" {
}
}
}
+
+ restart {
+ interval = "30m"
+ attempts = 10
+ delay = "15s"
+ mode = "delay"
+ }
}
}
}