Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker compose volume issue #142

Closed
careless10 opened this issue Apr 16, 2022 · 0 comments
Closed

Docker compose volume issue #142

careless10 opened this issue Apr 16, 2022 · 0 comments

Comments

@careless10
Copy link
Contributor

careless10 commented Apr 16, 2022

I noticed that whenever im working on macOS the docker-compose, argon2 and bcrypt issues arise
turned out

volumes:
     - ./:/home/node/app

is linking the container to the node_modules on the host so

     - /home/node/app/node_modules

adding this will exclude the node_modules usage from host, and creates an anonymous volume that holds the node_modules, thought it solves the issue, what its doing actually is creating a new "node_modules" which means we end up with 3 places with node_modules, not a very pretty solution,

Sadly this solution needs an image rebuild each time the package.json is updated

Reference:
https://burnedikt.com/dockerized-node-development-and-mounting-node-volumes/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants