Created
May 1, 2017 16:08
-
-
Save kauhat/263f3c29e8cb5acf131e4eca6eae1046 to your computer and use it in GitHub Desktop.
LaraDock node_modules & vendor volumes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
applications: | |
image: tianon/true | |
volumes: | |
- ${APPLICATION}:/var/www | |
- node_local:/var/www/node_modules | |
- composer_local:/var/www/vendor | |
volumes: | |
node_local: | |
driver: "local" | |
composer_local: | |
driver: "local" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
STAY SANE
Place in next to the usual
docker-compose.yml
file and run allyarn
/npm
/composer
commands from withindocker-compose exec workspace bash
.You should notice a speed improvement as Windows Defender won't check every file, and also avoid some of the nastiness that comes with using Node on Windows. e.g.