Both should do exacly the same, they are just installed differently.
docker compose is installed as docker CLI plugin (Linux only), and
docker-compose is installed as standalone binary.
See ref: https://docs.docker.com/compose/install/#scenario-two-instal...