diff --git a/docker-compose.yml b/docker-compose.yml index dd5f35d..b0d18b1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 diff --git a/php-fpm.dockerfile b/php-fpm.dockerfile new file mode 100644 index 0000000..a3fc47e --- /dev/null +++ b/php-fpm.dockerfile @@ -0,0 +1,2 @@ +FROM php:7-fpm +RUN docker-php-ext-install mbstring pdo pdo_mysql \ No newline at end of file