As we discussed to make automated building from the git source, there is no option to to build the image from docker-compose.yml rather we need to specify the root of dockerfile. And in docker file we can't access the outside files.
Note we can even bind mount as it is now. But if we shift then, we will have separate nginx for Drupal, php for Drupal. Apart from it we should avoid bind mount as much as possible. Because it still fully not supported for MAC.
As we discussed to make automated building from the git source, there is no option to to build the image from docker-compose.yml rather we need to specify the root of dockerfile. And in docker file we can't access the outside files. Note we can even bind mount as it is now. But if we shift then, we will have separate nginx for Drupal, php for Drupal. Apart from it we should avoid bind mount as much as possible. Because it still fully not supported for MAC.