title: docker-compose.yml Syntax for Named Volumes
body: <p>What is the <code>docker-compose.yml</code> syntax for specifying the host path of a named volume?</p>
  
  <h2>docker-compose.yml:</h2>
  
  <pre><code>volumes:
    myvolume:  # how do I specify path here?
    othervolume:
  
  services: # etc...
  </code></pre>
  
  <p>I've checked the <a href="https://docs.docker.com/compose/compose-file/" rel="noreferrer">docs</a>, but I can't find it. Honestly, I don't know how anyone uses this stuff.</p>