bugbug icon indicating copy to clipboard operation
bugbug copied to clipboard

Remove obsolete version attribute from docker-compose.yml files

Open Copilot opened this issue 4 months ago • 0 comments

Summary

Removes the obsolete version attribute from both docker-compose.yml files to eliminate the warning message generated by Docker Compose v2.

Problem

Docker Compose v2 deprecated the top-level version attribute, and now shows a warning when it's present:

WARN[0000] /Users/smujahid/repos/mozilla/bugbug/http_service/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion

Solution

Removed version: "3.2" from:

  • docker-compose.yml
  • http_service/docker-compose.yml

Docker Compose automatically determines the appropriate compose specification version based on the features used in the file, making this attribute unnecessary.

Validation

  • ✅ YAML syntax validated with pre-commit hooks
  • ✅ Docker Compose configuration validated with docker compose config
  • ✅ Confirmed warning no longer appears
  • ✅ No functional changes to the compose configurations

This change aligns with current Docker Compose best practices and removes potential confusion for developers working with the project.

Original prompt

This section details on the original issue you should resolve

<issue_title>The version attribute in docker-compose.yml is obsolete</issue_title> <issue_description>``` WARN[0000] /Users/smujahid/repos/mozilla/bugbug/http_service/docker-compose.yml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion


<agent_instructions>Remove the version.</agent_instructions>

## Comments on the Issue (you are @copilot in this section)

<comments>
</comments>

Fixes mozilla/bugbug#5368


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot avatar Oct 21 '25 23:10 Copilot