Nakama docker-compose fails with "compose file is invalid; services.nakama.depends_on contains an invalid type"

Hi!

I’m trying to install Nakama on a Debian-based Linode VPS.
The system is 4.19.0-26-amd64 #1 SMP Debian 4.19.304-1 (2024-01-09) x86_64 GNU/Linux.
Docker version 18.09.1, build 4c52b90
docker-compose version 1.21.0, build unknown

Attempting to install Nakama goes like this:

root@unfa:/opt/nakama# docker-compose -f docker-compose-postgres.yml  up
ERROR: The Compose file './docker-compose-postgres.yml' is invalid because:
services.nakama.depends_on contains an invalid type, it should be an array

I am using the exact file pulled from official Nakama Github / Getting started guide.

I’ve created an /opt/nakama folder, downloaded the yaml file there and tried to get it to run.

I have succeeded doing this on my desktop Arch Linux installation, but not on this VPS running Debian Stable.

What am I doing wrong? Please help :slight_smile:

Hello @unfa, I suspect this issue is caused by the Debian packaged Docker version being out-of-date and hence not having support for the depends_on directive, if you’ve installed it from the package manager, I suggest you try to install it from here: Install Docker Engine on Debian | Docker Docs.

Hope this helps.

Thanks!

Ah, I see I’m on Debian 10 (Buster). I should probably update to 11 or 12 (Bookworm).

Ok, a friend of mine has figured it out. It wasn’t about Debian version, but about something else. Upgrading from docker-compose to docker compose or something.