Skip to content

Update docker-compose.yml: Remove top-level version element #8555

@abinetabate1

Description

@abinetabate1

Prerequisites

  1. Be a member of Hack for LA. (There are no fees to join.) If you have not joined yet, please follow the steps on our Getting Started page and attend an onboarding session.
  2. You have already read our How to Contribute to Hack for LA Guide.

Overview

We need to update docker-compose.yml so that a warning is not displayed when running docker-compose up

Action Items

  • Run docker-compose up and observe that a warning similar to the one shown below is displayed.
$ docker-compose up
time="2026-03-15T08:28:12-07:00" level=warning msg="C:\\code\\hfla\\website\\docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion"
  • In your IDE, open the docker-compose.yml file.
  • Find the top-level version property and remove it. It is the first line in the file.
version: "3"

  • Verify that the warning is no longer displaying when running docker-compose up. Include before and after screenshots with your pull request.

Resources/Instructions

  1. docker-compose.yml
  2. Info about top-level version element

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    New Issue Approval

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions