Skip to content
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

Support multiple Docker Compose files #41691

Closed
dieter-medium opened this issue Aug 2, 2024 · 1 comment
Closed

Support multiple Docker Compose files #41691

dieter-medium opened this issue Aug 2, 2024 · 1 comment
Assignees
Labels
theme: containers Testcontainers, Docker Compose and Buildpack features type: enhancement A general enhancement
Milestone

Comments

@dieter-medium
Copy link

At the moment, the configuration option spring.docker.compose.file supports only a single file. However, I am using Spring Boot together with DevContainers, and to get my setup up and running, I need to use two Docker Compose files:

../compose.yaml
./compose.override.yaml

It would be highly beneficial if spring.docker.compose.file could support multiple files, similar to how Docker Compose itself allows specifying multiple files using the -f option.

Benefits:

  • Aligns with Docker Compose's native functionality, offering a more flexible and powerful configuration.
  • Supports complex setups like development with DevContainers.
  • Improves user experience by reducing the need for workaround solutions.

Additional Context:

Supporting multiple Docker Compose files is a common scenario in development environments where configurations are split for better manageability. Implementing this feature would make Spring Boot's Docker Compose support more robust and versatile.

Thank you for considering this enhancement!

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 2, 2024
@mhalbritter mhalbritter changed the title Docker compose: Support Multiple Files for spring.docker.compose.file Configuration Support multiple Docker Compose files Aug 5, 2024
@mhalbritter mhalbritter added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Aug 5, 2024
@mhalbritter mhalbritter added this to the 3.4.x milestone Aug 5, 2024
@mhalbritter mhalbritter added the theme: containers Testcontainers, Docker Compose and Buildpack features label Aug 5, 2024
@mhalbritter
Copy link
Contributor

Thanks for that proposal, I think this makes sense. How configuration merging works is documented here: https://docs.docker.com/compose/multiple-compose-files/merge/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme: containers Testcontainers, Docker Compose and Buildpack features type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

3 participants