title: How to share sub folders from a docker named volume?
body: <p>Here is a sample symfony project:</p>
  
  <pre><code>my_project:
      assets:
      src:
      web:
      package.json
      composer.json
  </code></pre>
  
  <p>I have an <strong>apache</strong> container and a container with <strong>webpack</strong> that will be used to watch the <em>assets</em> folder and build it when something changes.</p>
  
  <p>As both containers need access to the same filesystem, let's say I:</p>
  
  <ul>
  <li>Create a named volume</li>
  <li>Copy my_project in it using this <a href="https://stackoverflow.com/questions/37468788/what-is-the-right-way-to-add-data-to-an-existing-named-volume-in-docker">technique</a></li>
  <li>Run some <code>composer install</code> and <code>npm install</code> commands</li>
  </ul>
  
  <p>Once everything is ready, I need the <strong>apache</strong> container to share the <em>src</em> folder with the host and the <strong>webpack</strong> container to share the <em>assets</em> folder with the host.<br>
  That way, everytime I change a file in those folders, I would be able to see the result in my browser.</p>
  
  <p>I saw that it's not <a href="https://stackoverflow.com/questions/38164939/can-we-mount-sub-directories-of-a-named-volume-in-docker">possible</a> for the moment to mount subdirectories so what other way is there?<br>
  Or am I thinking about it the wrong way?</p>