aboutsummaryrefslogtreecommitdiff
path: root/cluster/prod/app
diff options
context:
space:
mode:
authorBaptiste Jonglez <git@bitsofnetworks.org>2023-05-03 08:53:59 +0200
committerBaptiste Jonglez <git@bitsofnetworks.org>2023-05-03 08:53:59 +0200
commite23b52346742ebd9cb039e3af705ba150492cd1e (patch)
tree5cfc5ddf4a201451ff05dc518718397808db3bff /cluster/prod/app
parent3befdea20669f5b6e09cadb20f91d33a3cded459 (diff)
downloadnixcfg-e23b52346742ebd9cb039e3af705ba150492cd1e.tar.gz
nixcfg-e23b52346742ebd9cb039e3af705ba150492cd1e.zip
Add infinite restart policy for postgresql
Diffstat (limited to 'cluster/prod/app')
-rw-r--r--cluster/prod/app/postgres/deploy/postgres.hcl7
1 files changed, 7 insertions, 0 deletions
diff --git a/cluster/prod/app/postgres/deploy/postgres.hcl b/cluster/prod/app/postgres/deploy/postgres.hcl
index 9bad079..2aa2d07 100644
--- a/cluster/prod/app/postgres/deploy/postgres.hcl
+++ b/cluster/prod/app/postgres/deploy/postgres.hcl
@@ -16,6 +16,13 @@ job "postgres14" {
port "psql_port" { static = 5433 }
}
+ restart {
+ interval = "10m"
+ attempts = 10
+ delay = "15s"
+ mode = "delay"
+ }
+
task "sentinel" {
driver = "docker"