Using Docker on a Mac in 2020 is comparable to having a 2009 Peugeot 1007 in 2020. Unfortunately for me, we aren’t in a position to change the setup, and unfortunately of all of us, Docker on Mac is a story of improvisations.
In theory, you can create a volume, bind a local directory from the host machine to it, and mount it to any number of your containers.
Keep in mind that if you are developing a fully 12-factor-compliant microservice, be it Symfony or anything else, your codebase should be performant on D4M as it is already properly chunked and easy to containerise.
All in all, this is unusable in development where you want to be able to iterate in seconds.