Removing deprecated Docker Version String from compose file #509
+0
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Description
This PR removes the explicit version string (
version: "3"
) from thedocker-compose.yml
.Rationale
Deprecated in Compose Specification
The Docker Compose specification no longer requires or recommends using the
version
field. Starting with Compose v1.27.0 and the introduction of the Compose Specification, theversion
key has been deprecated.Improved Forward Compatibility
By removing the version declaration, the file is parsed against the latest Compose specification by default. This ensures that new features and improvements introduced in Compose will be available without needing to bump the version manually.
Reduces Maintenance Overhead
Explicit version numbers can cause unnecessary churn and confusion, especially when developers assume they must be updated with new Docker releases. Omitting the field simplifies the file and avoids misleading future contributors.
Broad Compatibility
Modern Docker and Docker Compose versions handle files without
version:
seamlessly. Keeping it in place only creates the impression that specific constraints exist, which is no longer the case.References
Summary
This change aligns the Zammad
docker-compose.yml
with current Docker best practices, reduces confusion, and improves maintainability going forward.