Skip to content

Instantly share code, notes, and snippets.

@kauhat
Created May 1, 2017 16:08
Show Gist options
  • Save kauhat/263f3c29e8cb5acf131e4eca6eae1046 to your computer and use it in GitHub Desktop.
Save kauhat/263f3c29e8cb5acf131e4eca6eae1046 to your computer and use it in GitHub Desktop.
LaraDock node_modules & vendor volumes
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"
@kauhat
Copy link
Author

kauhat commented May 1, 2017

STAY SANE

Place in next to the usual docker-compose.yml file and run all yarn/npm/composer commands from within docker-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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment