From 8ea5803e01719c2d70987c57a237d58cb5819e3d Mon Sep 17 00:00:00 2001 From: Bernhard Rusch Date: Tue, 23 Jul 2024 13:48:03 +0200 Subject: [PATCH] Apply suggestions from code review --- Dockerfile | 2 +- files/conf/php-fpm/php-fpm.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d7e8c73..46cb1c6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -76,7 +76,7 @@ ENV OPCACHE_VALIDATE_TIMESTAMPS 1 ENV OPCACHE_CONSISTENCY_CHECKS 0 # fpm settings -ENV PHP_FPM_IP 127.0.0.1 +ENV PHP_FPM_LISTEN 127.0.0.1:9000 ENV PHP_FPM_PORT 9000 ENV PHP_FPM_PM dynamic ENV PHP_FPM_PM_MAX_CHILDREN 5 diff --git a/files/conf/php-fpm/php-fpm.conf b/files/conf/php-fpm/php-fpm.conf index 874106a..73c4cdd 100644 --- a/files/conf/php-fpm/php-fpm.conf +++ b/files/conf/php-fpm/php-fpm.conf @@ -1,6 +1,6 @@ ; File overwrites the original values with environment variables [www] -listen = ${PHP_FPM_IP}:${PHP_FPM_PORT} +listen = ${PHP_FPM_LISTEN} pm = ${PHP_FPM_PM} pm.max_children = ${PHP_FPM_PM_MAX_CHILDREN} pm.start_servers = ${PHP_FPM_PM_START_SERVERS}