Skip to content

Remove obsolete check for 'version' in docker compose file #1727

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: 1.x
Choose a base branch
from

Conversation

kasperh90
Copy link

Running symfony console make:docker:database fails with the error "[ERROR] compose.yaml file version is not set." if the version: field is missing.

Since Docker Compose v2, the version field is optional and considered obsolete. Users with a modern compose.yaml may see this error unnecessarily.

See: https://docs.docker.com/reference/compose-file/version-and-name/

This PR removes the version check and updates the tests accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant