Skip to content

Refactor Docker Compose file naming to avoid V2 precedence conflict #68

@devondragon

Description

@devondragon

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions