Docker-compose named mounted volume
<p>In order to keep track of the volumes used by docker-compose, I'd like to use named volumes. This works great for 'normal' volumes like</p>

<pre class="lang-yaml prettyprint-override"><code>version: 2
services: 
  example-app:
    volume:
      -named_vol:/dir/in/container/volume
volumes:
  named_vol:
</code></pre>
<p>But I can't figure out how to make it work when mounting the local host.
I'm looking for something like:</p>
<pre class="lang-yaml prettyprint-override"><code>version: 2
services: 
  example-app:
    volume:
      -named_homedir:/dir/in/container/volume
volumes:
  named_homedir: /c/Users/
</code></pre>
<p>or</p>
<pre class="lang-yaml prettyprint-override"><code>version: 2
services: 
  example-app:
    volume:
      -/c/Users/:/home/dir/in/container/ --name named_homedir
</code></pre>
<p>is this in any way possible or am I stuck with anonymous volumes for mounted ones?</p>