Skip to content

Problem with the docker-compose version #4

@ovizii

Description

@ovizii

I "slightly" adapted the docker-compose.yml file but when trying the

docker-compose build command I get this error:

docker-compose build
ERROR: Version in "./docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a version of "2" (or "2.0") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/

Any advice?

docker -v
Docker version 18.03.1-ce, build 9ee9f40

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions