In many examples, this syntax is used:
...but in Composer V2 (released April 2022), this changed to:
... so you get this error:
$ docker-compose up
-bash: docker-compose: command not found
Since Composer V2 is the latest official release, I think the examples should use the docker compose up syntax in these files: https://github.com/search?q=org%3Adocker-solr%20%22docker-compose%20up%22&type=code