inetum-orleans / docker-devbox-ddb

Erase environment differences, make developers happy !
https://inetum-orleans.github.io/docker-devbox-ddb
MIT License
4 stars 1 forks source link

The version in docker-compose.yaml generated is obsolete #229

Closed Vincere1st closed 4 months ago

Vincere1st commented 5 months ago

Do a new installation of docker devbox and go to the folder ~/.docker-devbox/traefik and run docker compose ps a warning appear:

image

same on portainer.

Perhaps remove the version tag of the generated file if there is no replacement.

jeremyVignelles commented 4 months ago

The "version" key seems to have been removed when moving from docker-compose to docker compose. Now that we have docker compose all the way, we could drop support for docker-compose and remove that version key.

source : https://docs.docker.com/compose/intro/history/

Compose V2 uses the Compose Specification for project definition. Unlike the prior file formats, the Compose Specification is rolling and makes the version top-level element optional. Compose V2 also makes use of optional specifications - Deploy, Develop and Build.

jeremyVignelles commented 4 months ago

Fixed in https://github.com/inetum-orleans/docker-devbox-ddb/commit/7bc7719a1ade9be7fe1d9684ea123a430d6192f9 will be released as ddb 3.0