Description
metrics/docker-compose.yml line 1 begins with:
The top-level version key in Compose files has been obsolete since Compose V2 (the docker compose CLI plugin ignores it and prints a warning: the attribute \version` is obsolete). The root docker-compose.ymlalready reflects this — it has noversion:key at all and starts directly with its header comment block beforeservices:` (line 11).
Impact
Running docker compose -f metrics/docker-compose.yml up (or any docker compose command against this file) prints an "obsolete" warning on every invocation, which is just noise, and the file is now inconsistent with the versioning convention already adopted in the root docker-compose.yml.
Suggested fix
Remove the version: '3.8' line from metrics/docker-compose.yml, matching the root docker-compose.yml:
services:
# Metrics exporter
router-metrics-exporter:
...
Description
metrics/docker-compose.ymlline 1 begins with:The top-level
versionkey in Compose files has been obsolete since Compose V2 (thedocker composeCLI plugin ignores it and prints a warning:the attribute \version` is obsolete). The rootdocker-compose.ymlalready reflects this — it has noversion:key at all and starts directly with its header comment block beforeservices:` (line 11).Impact
Running
docker compose -f metrics/docker-compose.yml up(or anydocker composecommand against this file) prints an "obsolete" warning on every invocation, which is just noise, and the file is now inconsistent with the versioning convention already adopted in the rootdocker-compose.yml.Suggested fix
Remove the
version: '3.8'line frommetrics/docker-compose.yml, matching the rootdocker-compose.yml: