but cannot connect from outside (due to the use of networks, and how to access the network
guess you need to)
And using directives ports - don't need prokalyvayutsya ports in the containers outside?
If you make any changes in main application
one can only hope that they're going to appear in the container
If you make changes to the project which primapin through volume container immediately sees.
Can your app to see what local files have changed and to apply them is another question.
But even if he can not - there is no problem to prestarting the desired container after making any changes.
Can five times to remove the container with the app, then ten times to remove the image
any changes will not get anywhere.
I do not know you are built - but will bring about examples of projects in python.
In Python, a folder is created with a virtual environment where to install all the required libraries to work. This folder will mapitse together with the container. This uses the python container from a standard image on all the projects and virtual environments - from primplanul directory. There is no need to install anything extra into containers. So what you're trying to do with images - is unclear...
To use the virtual environment on the local machine by running the application through it is impossible
because the network database somewhere local.
Well here is to decide - using Docker for this, or a virtual environment on your machine.
If you want to simultaneously use both - prokidyvaya ports.