Make nextcloud backup a non-sidecar task
Avoids restarting whole group when if it fails
This commit is contained in:
parent
8cd2abc6b8
commit
252c9b4111
@ -155,6 +155,11 @@ job "nextcloud" {
|
|||||||
task "backup" {
|
task "backup" {
|
||||||
driver = "docker"
|
driver = "docker"
|
||||||
|
|
||||||
|
lifecycle {
|
||||||
|
hook = "poststart"
|
||||||
|
sidecar = false
|
||||||
|
}
|
||||||
|
|
||||||
volume_mount {
|
volume_mount {
|
||||||
volume = "nextcloud-data"
|
volume = "nextcloud-data"
|
||||||
destination = "/data"
|
destination = "/data"
|
||||||
|
Loading…
Reference in New Issue
Block a user