Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP-FPM using unix sock instead of TCP #2587

Open
kiddtang opened this issue May 3, 2020 · 0 comments
Open

PHP-FPM using unix sock instead of TCP #2587

kiddtang opened this issue May 3, 2020 · 0 comments

Comments

@kiddtang
Copy link

kiddtang commented May 3, 2020

Is your feature request related to a problem? Please describe.
I am new in docker, but it is very easily to set PHP-FPM using unix socket in normal LEMP stack.

 location ~ \.php$ {
                include snippets/fastcgi-php.conf;
                fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
        }

also TCP is having network protocol overhead, which can affect speed and throughput.

Inspired by this article...
https://medium.com/@shrikeh/setting-up-nginx-and-php-fpm-in-docker-with-unix-sockets-6fdfbdc19f91

Describe the solution you'd like
Possible to have php-fpm with unix socket option? If i am not mistake, it is currently using the default port 9000 as the mapping shown in docker ps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant