Please, rephrase your question or try to share commands that show what your goal is. I don’t understand how the Windows VM and macOS is related and what you want to do with the compose file. You can also try to create a diagram to illustrate your environment.
When I run VS on Mac it’s not working very well and the VS code stopped being supported by Microsoft.
yes, I have the option to mount the project, But I think it will not work in debugging,
the main purpose of docker-compose is to run all projects that depend on each other and be able to debug.