Is your feature request related to a problem? Please describe.
For CI, it would be good to verify that the docker-compose would work correctly.
Describe the solution you'd like
When I do docker-compose verify it does the same thing as docker-compose up and waits for the healthcheck to pass for all the services. Once it passes, it runs docker-compose down to tear down the app.
Some other parameters to consider are:
--build force a build even if it is not needed
--limit=60s time limit before giving up on health checks to pass
--keep-up keeps the services up after verifying. This allows more complex integration tests to be executed after the healthchecks are up.
Describe alternatives you've considered
We create a separate test application that waits for the stack to come up and run our tests.
Is your feature request related to a problem? Please describe.
For CI, it would be good to verify that the docker-compose would work correctly.
Describe the solution you'd like
When I do
docker-compose verifyit does the same thing asdocker-compose upand waits for thehealthcheckto pass for all the services. Once it passes, it runsdocker-compose downto tear down the app.Some other parameters to consider are:
--buildforce a build even if it is not needed--limit=60stime limit before giving up on health checks to pass--keep-upkeeps the services up after verifying. This allows more complex integration tests to be executed after the healthchecks are up.Describe alternatives you've considered
We create a separate test application that waits for the stack to come up and run our tests.