Right now our Jenkins agents generate a docker-compose.yml for each of our Rails projects and then run docker-compose up. The docker-compose.yml has a main \"web\" container
Since version 1.12.0, you can use the --exit-code-from option.
1.12.0
--exit-code-from
From documentation:
--exit-code-from SERVICE Return the exit code of the selected service container. Implies --abort-on-container-exit.
--exit-code-from SERVICE
Return the exit code of the selected service container. Implies --abort-on-container-exit.