Skip to content

💡[Cleanup/Enhancement]: Remove obsolete version field from docker-compose.yml #716

@sheikhlimon

Description

@sheikhlimon

Is there an existing issue for this?

  • I have searched the existing issues

Feature Description

Problem

When running docker compose up with the current docker-compose.yml, Docker Compose v2 displays this warning:

WARN[0000] the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion

This happens because the version attribute is no longer used in the Compose specification. It can cause confusion for contributors and new users.

Proposed Solution

Remove the obsolete version field from the docker-compose.yml. The Compose spec automatically determines the correct version, so this field is unnecessary.

Use Case

  • Docker Compose v2: The field is ignored, so removing it avoids warnings.
  • Docker Compose v1: Deprecated and no longer maintained (EOL since 2021). Most modern environments use v2, so this change should be safe.

Benefits

  • Cleaner configuration
  • No confusing warnings for contributors
  • Aligns with the current Docker Compose specification

Add ScreenShots

No response

Priority

Low

Record

  • I have read the Contributing Guidelines
  • Are you a GSSOC'25 contributor
  • I want to work on this issue

Metadata

Metadata

Assignees

Type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions