Skip to content

Commit 5dc0a18

Browse files
baschnyoz-agent
andcommitted
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 <oz-agent@warp.dev>
1 parent a96bb08 commit 5dc0a18

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

files/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ cat <<EOF > $PHP_FPM_POOL_CONF
1212
[www]
1313
user = application
1414
group = application
15-
listen = 127.0.0.1:9000
15+
listen = 9000
1616
pm = dynamic
1717
pm.max_children = 5
1818
pm.start_servers = 2

files/php-fpm-www.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[www]
22
user = application
33
group = application
4-
listen = 127.0.0.1:9000
4+
listen = 9000
55
pm = dynamic
66
pm.max_children = 5
77
pm.start_servers = 2

0 commit comments

Comments
 (0)