From 784efbcc9b19770cba03a5b539bcd1c924fc7d03 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Wed, 30 Jun 2021 12:57:13 +0200 Subject: Add a restart policy --- app/garage/deploy/garage.hcl | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'app/garage/deploy') 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" + } } } } -- cgit v1.2.3