title: How to replace volumes_from in docker-composer v3
body: <p>I want to know the equivalent of the configuration below to suit version 3 of docker-composer.yml! volumes_from is no longer valid so am I supposed to skip the data volume and replace it with top level volumes ?</p>
  
  <pre><code>version: '2'
  services:
  
    php:
      build: ./docker-files/php-fpm/.
      volumes_from:
        - data
      working_dir: /code
      links:
        - mysql
  
    nginx:
      image: nginx:latest
      ports:
        - "80:80"
      volumes:
        - ./nginx/default.conf:/etc/nginx/conf.d/default.conf
      volumes_from:
        - data
      links:
        - php
  
    data:
      image: tianon/true
      volumes:
        - .:/code
  </code></pre>