How to skip mounting some subdirs from project root ? #5167
-
Hello! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Hi @sergiirepin Can you give a specific example of what you want and what "ignore" means? Do you want the code not to be available inside the container? If you can give a specific example maybe I can help. Also tell me what OS and Docker provider you're working with. |
Beta Was this translation helpful? Give feedback.
-
Hey @rfay, thanks for answer!
For example I have two vendor folders and I want to decide which one should be mounted to the container. Something like what. |
Beta Was this translation helpful? Give feedback.
-
@rfay yeah, this is how it works for me right now :) |
Beta Was this translation helpful? Give feedback.
I should say that you could in fact separately mount the vendor directory using a
docker-compose.*.yaml
and it would work. But lots of work compared to just letting both of them live side-by-side and link the one you want.