Skip to content

Commit

Permalink
Remove version property from compose file (#20)
Browse files Browse the repository at this point in the history
According to the Docker Compose specs, the version property is obsolete.

"The top-level version property is defined by the Compose Specification
for backward compatibility. It is only informative you'll receive
a warning message that it is obsolete if used.
Compose doesn't use version to select an exact schema to validate the
Compose file, but prefers the most recent schema when it's implemented."

See: https://github.com/compose-spec/compose-spec/blob/main/spec.md#version-top-level-element-obsolete

Closes gh-20
  • Loading branch information
vanam committed Jul 16, 2024
1 parent a84d86a commit ef67a6f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '3'
services:
mysql:
container_name: mysql
Expand Down

0 comments on commit ef67a6f

Please sign in to comment.