data:
    image: busybox
    volumes: 
        - /home/jeroen/workspace:/data
db:
    image: percona
    volumes:
        - percona_data
    environment:
        - MYSQL_ROOT_PASSWORD=test
redis:
    image: redis
mailcatcher:
    image: schickling/mailcatcher
phpfpm:
    build: phpfpm
    volumes_from:
        - data
    links:
        - db
        - redis
        - mailcatcher
web:
    build: nginx
    volumes_from:
        - data
    links:
        - phpfpm:fpm
        - mailcatcher
    ports:
        - 80:80
        - 443:433


data:
    image: busybox
    volumes: 
        - /home/jeroen/workspace:/data
db:
    image: percona
    volumes_from:
        - percona_data
    environment:
        - MYSQL_ROOT_PASSWORD=test
redis:
    image: redis
mailcatcher:
    image: schickling/mailcatcher
phpfpm:
    build: phpfpm
    volumes_from:
        - data
    links:
        - db
        - redis
        - mailcatcher
web:
    build: nginx
    volumes_from:
        - data
    links:
        - phpfpm:fpm
        - mailcatcher
    ports:
        - 80:80
        - 443:433


Read data from percona_data container
Read data from percona_data container
