forked from Deuxfleurs/nixcfg
Add infinite restart policy for postgresql
This commit is contained in:
parent
3befdea206
commit
e23b523467
1 changed files with 7 additions and 0 deletions
|
@ -16,6 +16,13 @@ job "postgres14" {
|
||||||
port "psql_port" { static = 5433 }
|
port "psql_port" { static = 5433 }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
restart {
|
||||||
|
interval = "10m"
|
||||||
|
attempts = 10
|
||||||
|
delay = "15s"
|
||||||
|
mode = "delay"
|
||||||
|
}
|
||||||
|
|
||||||
task "sentinel" {
|
task "sentinel" {
|
||||||
driver = "docker"
|
driver = "docker"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue