setup 'php-fpm' dockerfile to install extension PDO

This commit is contained in:
Adrien Marquès 2018-09-26 15:06:44 +02:00
parent a21dff7235
commit 49b45199b8
2 changed files with 5 additions and 1 deletions

View File

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

2
php-fpm.dockerfile Normal file
View File

@ -0,0 +1,2 @@
FROM php:7-fpm
RUN docker-php-ext-install mbstring pdo pdo_mysql