Shutdown all docker containers if one fails

... will then be restarted by systemd
This commit is contained in:
Martin Lablans
2022-10-04 10:04:32 +02:00
committed by GitHub
parent 69b33941c4
commit 99126a8959

View File

@ -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