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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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