How to stop all containers when one container stops with docker-compose?

You can use:

docker-compose up –abort-on-container-exit

Which will stop all containers if one of your containers stops

Leave a Comment