fix: +fixed php-fpm container now have 'pdo' and 'pdo_mysql' extensions and now can use 'mariadb' service

This commit is contained in:
xdrm-brackets 2018-02-17 18:00:50 +01:00
parent 0df0260222
commit fd846b9901
2 changed files with 8 additions and 1 deletions

View File

@ -20,7 +20,9 @@ services:
- '3306'
php-fpm:
image: php:7-fpm
build:
context: .
dockerfile: ./docker/php-fpm-ext
container_name: php-fpm
depends_on:
- mariadb

5
docker/php-fpm-ext Normal file
View File

@ -0,0 +1,5 @@
ENV PHP_EXTRA_CONFIGURE_ARGS='
FROM php:7-fpm
RUN docker-php-ext-install -j$(nproc) pdo pdo_mysql