NodeJS: Making docker-compose Volumes Ignore the node_modules Directory

How to keep your node_modules from disappearing when you map your app volumes

Semur Nabiev
2 min readJun 11, 2019

--

Code snippets can be found at the bottom of the article.

Problem

If you use Docker, you probably also use Docker Compose. Which means you map your app volume…

--

--