title: Can I reference the service name docker-compose.yml
body: <p>In docker-compose.yaml, is there a way to reference the service name (web, database), so that in the code below, the volumes would be created as  <code>/store/web</code>  for web and  <code>/store/database</code> for database ?</p>
  
  <pre><code>---
  version: '2'
  
  services:
    web:
      volumes:
      - /store/${reference_service_name_above}
  
    database:
      volumes:
      - /store/${reference_service_name_above}
  </code></pre>