docker-compose up --build
docker-compose down
php extensions are installed via the https://github.com/mlocati/docker-php-extension-installer project.
Add the extension you want into the dockerfile, and then re-run docker-compose up --build
i.e
...
RUN docker-php-ext-install \
mysqli \
ldap
docker-compose exec php bash
host: localhost port: 3306 username: root password: request (or the value of MYSQL_ROOT_PASSWORD)