Shutdown all docker containers if one fails
... will then be restarted by systemd
This commit is contained in:
parent
69b33941c4
commit
99126a8959
|
@ -51,7 +51,7 @@ set +a
|
||||||
case "$ACTION" in
|
case "$ACTION" in
|
||||||
start)
|
start)
|
||||||
checkRequirements
|
checkRequirements
|
||||||
exec docker-compose -f ./$PROJECT/docker-compose.yml up
|
exec docker-compose -f ./$PROJECT/docker-compose.yml up --abort-on-container-exit
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
exec docker-compose -f ./$PROJECT/docker-compose.yml down
|
exec docker-compose -f ./$PROJECT/docker-compose.yml down
|
||||||
|
|
Loading…
Reference in New Issue