nginx:
  image: prooph/nginx:www
  ports:
      - 8080:80
      - 443:443
      - 10081:10081
      - 10082:10082
  links:
    - php:php
  volumes_from:
    - dataphp

php:
  image: prooph/php:5.6-fpm-xdebug
  links:
    - mariadb:mariadb
  volumes_from:
    - dataphp
  environment:
    - ADAPTER=mysql

dataphp:
  image: debian:jessie
  volumes:
    - .:/var/www

mariadb:
  image: mariadb
  ports:
    - 3306:3306
  environment:
    - MYSQL_ROOT_PASSWORD=dev
    - MYSQL_USER=dev
    - MYSQL_PASSWORD=dev
    - MYSQL_DATABASE=proophessor

nginx:
  image: prooph/nginx:www
  ports:
      - 8080:80
      - 443:443
      - 10081:10081
      - 10082:10082
  links:
    - php:php
  volumes_from:
    - dataphp

php:
  image: prooph/php:7.0-fpm
  links:
    - mariadb:mariadb
  volumes_from:
    - dataphp
  environment:
    - ADAPTER=mysql

dataphp:
  image: debian:jessie
  volumes:
    - .:/var/www

mariadb:
  image: mariadb
  ports:
    - 3306:3306
  environment:
    - MYSQL_ROOT_PASSWORD=dev
    - MYSQL_USER=dev
    - MYSQL_PASSWORD=dev
    - MYSQL_DATABASE=proophessor

Use prooph/php:7.0-fpm as image for php
Use prooph/php:7.0-fpm as image for php
