Hi
We have a Spring Boot project for an authorization server (used internally).
In order to test this authorization server we have a frontend (angular app) and a backend (an Hasura v2 instance). The frontend is in the repo (in a directory named "local-environment") and started manually. The backend is in a docker-compose file, that we used independently of Spring Boot, started manually too.
We try to use the docker compose functionnality to replace our current docker-compose file.
The problem is that, with the spring docker compose functionnality, the docker's services are started before our spring boot application (the authorization server). However our docker service depends of our authorization server, and it doesn't start until the authorization server answers.
Is it possible to enable Docker services to be started after Spring Boot application has been started ?
I understand that the docker compose support is used for dependencies of the project. We wonder if it's possible to enable also this functionnality for services dependent on the project ?
Comment From: philwebb
I'm afraid I don't think we can support this use-case without a significant redesign of our docker compose support. Given that our primary goal is to support services that the application depends on, I don't think we can invest the time to support what you want to do.
You may be able to reuse the org.springframework.boot.docker.compose.core.DockerCompose interface directly in your own application to start Docker compose. Perhaps calling it from a CommandLineRunner bean might work.