Dropped version info from docker-compose files (#4096)

According to the docker issue 11628
(https://github.com/docker/compose/issues/11628)
the 'version' field in docker-compose files is outdated.
It shows a warning like the following on hosts with a newer
Docker version:

```
WARN[0000] /srv/plane/docker-compose.yaml: `version` is obsolete
```

Also, the specs itself state the version was only informative:
https://github.com/compose-spec/compose-spec/blob/master/spec.md#version-and-name-top-level-elements

> The top-level `version` property is defined by the Compose
> Specification for backward compatibility. It is only informative.
> 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.
This commit is contained in:
Crsi 2024-04-04 09:07:50 +00:00 committed by GitHub
parent 4cba7ff2f5
commit 71b73000d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 0 additions and 6 deletions

View File

@ -1,5 +1,3 @@
version: "3.8"
x-app-env: &app-env x-app-env: &app-env
environment: environment:
- NGINX_PORT=${NGINX_PORT:-80} - NGINX_PORT=${NGINX_PORT:-80}

View File

@ -1,5 +1,3 @@
version: "3.8"
networks: networks:
dev_env: dev_env:
driver: bridge driver: bridge

View File

@ -1,5 +1,3 @@
version: "3.8"
services: services:
web: web:
container_name: web container_name: web