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.