Problem
Docker Compose V2 prioritizes compose.yaml over docker-compose.yml, which conflicts with our pattern of using compose.yaml for Spring Boot's Docker Compose integration (dev dependencies only) and docker-compose.yml for the full deployable stack.
Solution
- Rename
compose.yaml to compose.dev.yaml (dev dependencies for bootRun)
- Rename
docker-compose.yml to compose.yaml (full stack including the app container)
- Update
spring.docker.compose.file property to point to compose.dev.yaml
- Update any README or documentation references to the old filenames
Problem
Docker Compose V2 prioritizes
compose.yamloverdocker-compose.yml, which conflicts with our pattern of usingcompose.yamlfor Spring Boot's Docker Compose integration (dev dependencies only) anddocker-compose.ymlfor the full deployable stack.Solution
compose.yamltocompose.dev.yaml(dev dependencies forbootRun)docker-compose.ymltocompose.yaml(full stack including the app container)spring.docker.compose.fileproperty to point tocompose.dev.yaml