version is no longer used in docker compose CLI, and recent Docker Desktop versions warn about its inclusion.
Legacy versions 2.x and 3.x of the Compose file format were merged into the Compose Specification. It is implemented in versions 1.27.0 and above (also known as Compose V2) of the Docker Compose CLI.
version
is no longer used in docker compose CLI, and recent Docker Desktop versions warn about its inclusion.https://docs.docker.com/compose/compose-file/