-
Notifications
You must be signed in to change notification settings - Fork 40.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Explain how Docker Compose support works when services are already running #36483
Comments
Can you quote the text that implies that I think what's missing is an explanation of the behaviour differences when Docker Compose is already running (case 1 above) and when it is not (case 2 above). The docs accurately describe case 2 but do not describe case 1. The difference is the result of this logic in Lines 121 to 128 in b8e8b1d
Docker Compose is only started ( |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue. |
Let's at least describe case 1 where Docker Compose is already up before the Boot app is started. |
In my testing of the docker compose functionality with spring boot 3.1.1 I noticed a very nice behaviour that seems to be the opposite of what the docs suggest will happen.
case 1: docker compose started before the app
docker-compose up
and my postgres and pgAdmin startcase 2: docker compose not running before app
The docs at https://docs.spring.io/spring-boot/docs/3.1.1/reference/htmlsingle/#features.docker-compose.lifecycle imply that the default lifecycle is for docker compose down to be run on exit. I think docs are wrong as that is not the real world behaviour I am seeing.
It might also be useful in the lifecycle section of the docs to give an explanation of the difference between
docker compose start
anddocker compose up
since those are referenced in the text. I think many folks are not familiar with the subtle difference between up and start and I had to google it to learn about the difference. I found this stack overflow answer quite handy https://stackoverflow.com/a/56624718/438319The text was updated successfully, but these errors were encountered: