@dsyer ran into an issue where a Postgres update prevented the start of the Postgres container used for integration tests. Adding a --force-recreate --renew-anon-volumes would fix that, but as of now, there's no possibility to add additional flags to the docker compose up call.

Comment From: habuma

Similarly, there's no way (at least not that I see) to specify options for Docker Compose "down". For example, when I have a Docker Compose file that stands up a Chroma database in Docker, it also creates a volume. But when the app stops, only the container goes away, not the volume. docker compose down --volumes takes the volume down at the command line, but it would be useful to be able to have it remove the volume when the app stops.

Comment From: wilkinsona

https://github.com/spring-projects/spring-boot/issues/41086 is requesting the ability to set -p/--project-name. The project name can be set in the Docker Compose yaml file, but this flag allows that configuration to be overridden.

Comment From: osopromadze

Hi @wilkinsona, can I work on this issue?

Comment From: wilkinsona

Thanks for the offer, @osopromadze, but we're not ready to start work on this one, hence the status: pending-design-work label.

Comment From: mhalbritter

Changes are here and ready to be merged as soon as we have the 3.3.x branch: https://github.com/mhalbritter/spring-boot/tree/mh/38763-add-property-to-specify-docker-compose-startup-and-shutdown-flags