By default docker-compose up
keeps running even if some of the containers terminate and restart
is set to no
.
Is there a configuration to tell it to terminate (and stop all containers) when one of my containers finishes (the process in CMD terminates)?
Bonus points if it gets the exit code from the process of that container