Make development with Docker under OSX much faster
Currently running Gogocarto in Docker on OSX is extremely slow with webpages loading in 20-25s range, which is prohibitively slow. This is a know issue with Docker for Mac, see here 8th bullet point. This is due to the interaction between the container and the host file system.
To mitigate those issues it is recommended to minimize those interactions. One possibility is to cache the files, which is what I first implemented, which reduced page load times to around 4-5s. Other recommendations, recommended to not share the vendors folder created by composer which is very large. This is also what I did by only mounting the volumes strictly necessary for the service.
docker-compose.yml file had to be moved in the parent file in order to give it access to the files in the parent folder that need to be copied over (because they are not mounted anymore).