mediacms-io / mediacms

MediaCMS is a modern, fully featured open source video and media CMS, written in Python/Django and React, featuring a REST API.
https://mediacms.io
GNU Affero General Public License v3.0
2.81k stars 524 forks source link

ERROR: The Compose file './docker-compose-dev.yaml' is invalid because: services.web.depends_on contains an invalid type, it should be an array #433

Closed Megidd closed 2 years ago

Megidd commented 2 years ago

When running this command:

cd /home/mediacms.io/mediacms
docker-compose -f docker-compose-dev.yaml up

This error is received:

ERROR: The Compose file './docker-compose-dev.yaml' is invalid because: services.web.depends_on contains an invalid type, it should be an array

Downgrading version by #419 fixed the error. But it's preferred not to downgrade.

Versions

OS

Operating System: openSUSE Leap 15.3

docker

Docker version 20.10.12-ce, build 459d0dfbbb51

docker-compose

docker-compose version 1.25.1, build a82fef0

Error screenshot

image

Expected behavior

image

pandiloko commented 2 years ago

I think I had something very similar. Make sure you have at least docker-compose 1.27.

I did this in Ubuntu LTS:

You can pip install with non-root but as I understand with root it is system-wide available, which was what i wanted.

Megidd commented 2 years ago

Thanks @pandiloko :smile:

The error got resolved on my device by:

zypper rm docker-compose
pip install docker-compose

Docker-compose version is upgraded from:

docker-compose version 1.25.1, build a82fef0

To:

docker-compose version 1.29.2, build unknown

Now, the error is resolved:

systemctl start docker.service
docker-compose -f docker-compose-dev.yaml up

image