Skip to content

Support multiple Docker Compose files #41691

@dieter-medium

Description

@dieter-medium

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!

Metadata

Metadata

Assignees

Labels

theme: containersTestcontainers, Docker Compose and Buildpack featurestype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions