Skip to content

Generated Docker Compose file should use compose.yaml instead of docker-compose.yml #736

@9las

Description

@9las

Description:
When creating a new Svelte project using the sv CLI and choosing to include Docker support, the generated file is named docker-compose.yml.

npx sv create my-app
# then select the Docker option

However, according to Docker’s current recommendations, the preferred filename is compose.yaml.

Reference:
Docker documentation

Why this matters:

  • Docker Compose V2 supports compose.yaml as the standard name.
  • Aligning with the official convention improves clarity and follows modern best practices.
  • It also ensures consistency with other tools and official Docker examples.

Suggested fix:
Rename the generated file to compose.yaml in the project scaffolding template when the Docker option is selected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions