aboutsummaryrefslogtreecommitdiff
path: root/app/garage/deploy/garage.hcl
diff options
context:
space:
mode:
Diffstat (limited to 'app/garage/deploy/garage.hcl')
-rw-r--r--app/garage/deploy/garage.hcl14
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"
+ }
}
}
}