Skip to content

Conversation

Copy link

Copilot AI commented Oct 21, 2025

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 #5368


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

Copilot AI changed the title [WIP] Remove obsolete version attribute from docker-compose.yml Remove obsolete version attribute from docker-compose.yml files Oct 21, 2025
Copilot finished work on behalf of suhaibmujahid October 21, 2025 23:39
Copilot AI requested a review from suhaibmujahid October 21, 2025 23:39
@suhaibmujahid suhaibmujahid marked this pull request as ready for review October 21, 2025 23:43
@suhaibmujahid suhaibmujahid enabled auto-merge (squash) October 21, 2025 23:44
@suhaibmujahid suhaibmujahid requested a review from marco-c October 21, 2025 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The version attribute in docker-compose.yml is obsolete

3 participants