Whenever I create a new Python project using docker-compose, I expect to manually mount my project in the Python app container.
As such my docker-compose.yml will usually have an entry like this for my app container.
When I examine the container volume assignments, I will see the defined /code entry, but also a stealth mapping of my project directory into /opt/project.
What is the purpose of this automatic volume? I just hate auto-magical happenings in my development environment without fully understanding what's going on.