Docker: Remove the 'version' tag #546

Open
opened 2026-01-02 14:27:41 +00:00 by Vylpes · 0 comments
Owner

Epic:
Story Points:


Remove the obsolete top-level version key from Docker Compose files. Compose Specification treats version as informational only; Compose v2 ignores it and warns that it is obsolete.

Current Behaviour

docker-compose.yml starts with version: "3.9". Running docker compose against it emits a warning that the version attribute is obsolete and will be ignored.

New Behaviour

Tracked Compose files in the repo have no top-level version key. docker compose commands against them no longer warn about an obsolete version attribute. Service definitions are otherwise unchanged.

Acceptance Criteria

GIVEN the repo's docker-compose.yml
WHEN I open the file
THEN it has no top-level version key
AND the services (and other) definitions are otherwise unchanged

GIVEN docker-compose.yml with version removed
WHEN I run docker compose -f docker-compose.yml config
THEN the command succeeds
AND stderr does not warn that the version attribute is obsolete

Subtasks

No subtasks

Notes

  • Deploy scripts reference docker-compose.prod.yml / docker-compose.stage.yml, which are not tracked in this repo; if those host files also declare version, update them out of band when deploying.
  • Compose Spec: top-level version is obsolete / ignored by Compose v2.
Epic: \ Story Points: --- Remove the obsolete top-level `version` key from Docker Compose files. Compose Specification treats `version` as informational only; Compose v2 ignores it and warns that it is obsolete. ## Current Behaviour `docker-compose.yml` starts with `version: "3.9"`. Running `docker compose` against it emits a warning that the `version` attribute is obsolete and will be ignored. ## New Behaviour Tracked Compose files in the repo have no top-level `version` key. `docker compose` commands against them no longer warn about an obsolete `version` attribute. Service definitions are otherwise unchanged. ## Acceptance Criteria GIVEN the repo's `docker-compose.yml` WHEN I open the file THEN it has no top-level `version` key AND the `services` (and other) definitions are otherwise unchanged GIVEN `docker-compose.yml` with `version` removed WHEN I run `docker compose -f docker-compose.yml config` THEN the command succeeds AND stderr does not warn that the `version` attribute is obsolete ## Subtasks *No subtasks* ## Notes - Deploy scripts reference `docker-compose.prod.yml` / `docker-compose.stage.yml`, which are not tracked in this repo; if those host files also declare `version`, update them out of band when deploying. - Compose Spec: top-level `version` is obsolete / ignored by Compose v2.
Vylpes added this to the 3.6.0 milestone 2026-01-14 17:59:11 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
RabbitLabs/vylbot-app#546
No description provided.