diff --git a/Dockerfile b/Dockerfile index cb926b9..b04350c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -76,6 +76,7 @@ ENV OPCACHE_VALIDATE_TIMESTAMPS 1 ENV OPCACHE_CONSISTENCY_CHECKS 0 # fpm settings +ENV PHP_FPM_LISTEN 127.0.0.1:9000 ENV PHP_FPM_PM dynamic ENV PHP_FPM_PM_MAX_CHILDREN 5 ENV PHP_FPM_PM_START_SERVERS 2 diff --git a/files/conf/php-fpm/php-fpm.conf b/files/conf/php-fpm/php-fpm.conf index 700edc8..73c4cdd 100644 --- a/files/conf/php-fpm/php-fpm.conf +++ b/files/conf/php-fpm/php-fpm.conf @@ -1,5 +1,6 @@ ; File overwrites the original values with environment variables [www] +listen = ${PHP_FPM_LISTEN} pm = ${PHP_FPM_PM} pm.max_children = ${PHP_FPM_PM_MAX_CHILDREN} pm.start_servers = ${PHP_FPM_PM_START_SERVERS}