Compose V1 vs V2 Spec: Why the version: Key is Obsolete
The legacy Compose file format required declaring version: '3.8'. With the transition to the open Compose Specification managed by the Linux Foundation, the version top-level attribute is officially deprecated and ignored by modern Docker Compose (v2.x) runtimes.