br4chu / docker-compose-maven-plugin

Maven plugin that talks to docker-compose command-line interface
Apache License 2.0
12 stars 4 forks source link

<upServices> tag #12

Open luisfranciscob opened 2 years ago

luisfranciscob commented 2 years ago

Hi,

I have a docker compose with 2 services: A and B.

I would like to run A service (a database), then run Spring Boot maven plugin (that runs a Spring app that requires the previous database) and finally run the C service (that requires the app to be up).

I could achieve that order using multiple executions, but I couldn't find the way to run only A service at the first time because the up goal works on all the services in the compose and I couldn't use start goal since the compose is not up.

I tried to use something similar to <startServices> like <upServices> but I think that feature is missing. Since it is possible to execute "docker-compose up A", where A is a service, I think that it makes a lot of sense to include <upServices>.

Thanks in advance!

FelipeGXavier commented 8 months ago

Anything new on this? Same situation here