version: '2'
services:
  db:
    image: mongo
    ports:
      - "27017:27017"

  nginx-php7.0:
    build:
      context: ./docker
      dockerfile: ./Dockerfile-php7.0
    ports:
      - "8100:8100"
    links:
      - db
    volumes:
      - ./:/usr/share/nginx/html
    command: ["bash", "/usr/share/nginx/html/docker/launch-f43me.sh"]

  # nginx-php7.1:
  #   build:
  #     context: ./docker
  #     dockerfile: ./Dockerfile-php7.1
  #   ports:
  #     - "8100:8100"
  #   links:
  #     - db
  #   volumes:
  #     - ./:/usr/share/nginx/html
  #   command: ["bash", "/usr/share/nginx/html/docker/launch-f43me.sh"]

version: '2'
services:
  db:
    image: mvertes/alpine-mongo
    ports:
      - "27017:27017"

  nginx-php7.0:
    build:
      context: ./docker
      dockerfile: ./Dockerfile-php7.0
    ports:
      - "8100:8100"
    links:
      - db
    volumes:
      - ./:/usr/share/nginx/html
    command: ["bash", "/usr/share/nginx/html/docker/launch-f43me.sh"]

  # nginx-php7.1:
  #   build:
  #     context: ./docker
  #     dockerfile: ./Dockerfile-php7.1
  #   ports:
  #     - "8100:8100"
  #   links:
  #     - db
  #   volumes:
  #     - ./:/usr/share/nginx/html
  #   command: ["bash", "/usr/share/nginx/html/docker/launch-f43me.sh"]

Use alpine version of Mongo
Use alpine version of Mongo

mongo: 342.5 MB
mvertes/alpine-mongo: 75.33 MB
