name: doctrine-extensions
recipe: lemp
config:
  php: 7.1
  webroot: .
services:
  appserver:
    run_as_root:
    - pecl install mongodb
    - docker-php-ext-enable mongodb
    overrides:
      services:
        # Environment variables for the PHP app server
        environment:
          # Use the PHP 7 Composer file for all Composer commands
          COMPOSER: composer7.json
  mongodb:
    type: mongo:3.4
tooling:
  mongo:
    service: mongodb

name: doctrine-extensions
recipe: lemp
config:
  php: 7.1
  webroot: .
services:
  appserver:
    run_as_root:
    - pecl install mongodb
    - docker-php-ext-enable mongodb
  mongodb:
    type: mongo
tooling:
  mongo:
    service: mongodb

Use MongoDB 4 in Lando dev env
Use MongoDB 4 in Lando dev env

Also removes the need to switch Composer files based on the PHP version, since the new minimum in 3.0 is PHP >= 7.1
