title: extract docker-compose file volumes with regex
body: <p>I'm trying to extract all containers' bind-mounts/volumes of a docker-compose file with regex.</p>
  <p>The pattern that I've made for such purpose is:</p>
  <p><code>/volumes:\n(?:^[ \n]+- ?(\S+))/gm</code></p>
  <p><a href="https://regex101.com/r/hToMyu/3" rel="nofollow noreferrer">Regex Demo</a></p>
  <p>But it only selects the first volume/bind-mount of each container.</p>
  <p>How can I make it to select <strong>ALL</strong> <code>volumes</code> list items?</p>