Docker-compose displaying all services not the one defined in docker-compose.yml

No I did not try anywhere other than AWS yet.

The below workaround is working in AWS with docker-compose v2.

Start docker cluster with -p

docker-compose --compatibility -f docker-compose.yml -p infra up --scale es01=0 --scale elasticsearch-mapping-init=0 --scale analytics-db=0 

docker-compose --compatibility -f docker-compose.app.yml -p app up --scale autocomplete-service=0 

Use -p in docker ps like below

docker-compose -p app ps --services

Also can you let me know how to upgrade to docker-compose v2 in Mac OS Ventura? I have started a new discussion for this.