1 min readOct 18, 2019
Before using complex solutions like docker-sync or unison, try just sharing what you actually need e.g. exclude node_modules (node) and vendor (PHP composer). Also set them read only if you don’t need to edit files from the container, and cached if you are happy with some delay in syncing host->container. Both can be used by suffixing “:cached,ro” to the docker-compose volume definition). After having done that, you shouldn’t by that far from the performances of not having volumes at all.