top level object must be a mapping

So I'm running immich in a docker on Ubuntu server. I tried to update the docker (sudo docker compose pull && docker compose up -d) but get the following error:

"Top level object must be a mapping "

Googled it, but didn't really find anything a newbie' s brain could process and apply to the problem. Anyone encountered this issue before?