immers-space / guppe

Federated social groups with ActivityPub, NodeJS, Express, and Mongodb
https://a.gup.pe
GNU Affero General Public License v3.0
192 stars 16 forks source link

Version in "./docker-compose.yml" is unsupported. #56

Closed Tealk closed 2 years ago

Tealk commented 2 years ago

I get the following error message when I try to start the docker

docker-compose up --build -d
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 supported version (e.g "2.2" or "3.3") 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/

docker-compose.yml: https://github.com/wmurphyrd/guppe/blob/deccca539dd19bfecbe8e65f72845cd72804e537/docker-compose.yml

wmurphyrd commented 2 years ago

Seems you need to update your docker-comose install to v19

https://docs.docker.com/compose/compose-file/compose-versioning/#compatibility-matrix

Tealk commented 2 years ago

I use the docker repository and from there I have the latest version: https://docs.docker.com/engine/install/debian/#set-up-the-repository

wmurphyrd commented 2 years ago

please report your docker --version and docker-compose --version

Tealk commented 2 years ago

docker-compose version

docker-compose version 1.25.0, build unknown
docker-py version: 4.1.0
CPython version: 3.9.2
OpenSSL version: OpenSSL 1.1.1n  15 Mar 2022

docker --version Docker version 20.10.17, build 100c701

wmurphyrd commented 2 years ago

yeah your docker compose is way out of date. Current version is 2.6.0, you need at least 1.27.0

wmurphyrd commented 2 years ago

I haven't upgrade to 2.x.x myself, the cli is differeent, so I'd recommend to get the latest 1.x if you want the instructions here to work verbatim

Tealk commented 2 years ago

Ok they must have changed the command

docker compose version
Docker Compose version v2.6.0