-
Notifications
You must be signed in to change notification settings - Fork 2k
Open
Description
I'd like to use the php-fpm container with socket listener(more secure I think) instead of tcp. I run my instance like this:
docker run -d \
-e TZ=${MY_TIMEZONE} \
--name php-fpm-8.4 \
--network ${DOCKER_NETWORK} \
--restart=unless-stopped \
-v ${DOCKER_CONTAINER_DIR}/htdocs:/srv/www \
-v ${DOCKER_CONTAINER_DIR}/php/run:/run/php \
-v ${DOCKER_CONTAINER_DIR}/php/my-fpm-pool.conf:/usr/local/etc/php-fpm.d/www.conf \
php:8.4-fpm
So, I override the www.conf with my customized FPM pool config which contains a "listen = /run/php/php.sock". When the container started there was no socket. After several minutes I found the mistake in file /usr/local/etc/php-fpm.d/zz-docker.conf. It redefines the "www" pool listen setting to tcp. Contents of the file:
[global]
daemonize = no
[www]
listen = 9000
Why this file exists? Why is it needed to contain "listen = 9000"?
hatifnatt
Metadata
Metadata
Assignees
Labels
No labels