IF you have Compose v2 then docker compose ls can show you the known compose paths, but even before compose v2 containers had labels which you can see if you run
docker container inspect CONTAINERNAME
and search for “labels” in the output.
If you already deleted the files you can try to find something like this:
I always forget what @meyay showed me as I never needed it.