From 5dc0a1877395052626da5aadd0452873e85627b9 Mon Sep 17 00:00:00 2001 From: Ernesto Baschny Date: Wed, 22 Apr 2026 21:40:29 +0200 Subject: [PATCH] Bind php-fpm to all interfaces by default Upstream php:*-fpm moved the listen directive from zz-docker.conf into docker.conf, so our www.conf (written by entrypoint) is now the last file to set listen and its 127.0.0.1:9000 value takes effect. That breaks web->php connectivity in multi-container setups. Default to listen = 9000 so other containers can reach php-fpm; users can still lock it down via PHP_FPM_OVERRIDE. Co-Authored-By: Oz --- files/entrypoint.sh | 2 +- files/php-fpm-www.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/entrypoint.sh b/files/entrypoint.sh index bd667f7..172cdf1 100644 --- a/files/entrypoint.sh +++ b/files/entrypoint.sh @@ -12,7 +12,7 @@ cat < $PHP_FPM_POOL_CONF [www] user = application group = application -listen = 127.0.0.1:9000 +listen = 9000 pm = dynamic pm.max_children = 5 pm.start_servers = 2 diff --git a/files/php-fpm-www.conf b/files/php-fpm-www.conf index cfaae41..990843f 100644 --- a/files/php-fpm-www.conf +++ b/files/php-fpm-www.conf @@ -1,7 +1,7 @@ [www] user = application group = application -listen = 127.0.0.1:9000 +listen = 9000 pm = dynamic pm.max_children = 5 pm.start_servers = 2