Docker Desktop has an emulator for emulating those platforms. Did you install Docker Desktop on Ubuntu as well? If not, you will need o install the emulator. If I remember correctly, it means the qemu-user-static and the binfmt-support packages.
Then try docker compose instead of docker-compose which could be Compose v1 if you also installed that or had it already. Compose v1 is discontinued and it required a version number in the compose file to support options that were added later