diff --git a/nginx/conf.d/example.conf b/nginx/conf.d/example.conf index a10358d..93c67e0 100644 --- a/nginx/conf.d/example.conf +++ b/nginx/conf.d/example.conf @@ -8,7 +8,7 @@ server { } location ~ \.php$ { - fastcgi_pass php7.4:9000; + fastcgi_pass php74:9000; fastcgi_index index.php; fastcgi_split_path_info ^((?U).+\.php)(/?.+)$; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; diff --git a/php7.4/dockerfile b/php7.4/dockerfile index 4405908..5543b03 100644 --- a/php7.4/dockerfile +++ b/php7.4/dockerfile @@ -27,9 +27,11 @@ RUN apt-get update && apt-get install -y \ && pecl install \ redis \ xdebug \ + mongodb \ && docker-php-ext-enable \ redis \ xdebug \ + mongodb \ && apt-get clean \ && apt-get autoclean