Docs.docker.com has moved their 2.4 compose documentation to a legacy page so all the links on this page take you to a page telling you all the old docs have moved. https://docs.balena.io/reference/supervisor/docker-compose/
This seems to be the best location for the reference data for the v2 compose format. https://github.com/docker/compose/blob/v1/docs/Compose%20file%20reference%20(legacy)/version-2.md