Sign inSign up

duffrecords/nginx

By duffrecords

•Updated over 7 years ago

Nginx image compatible with PHP-FPM on a unix socket

Image
0

178

duffrecords/nginx repository overview

This image is cloned from the official Nginx image, modified to communicate with a PHP-FPM container in the same pod via unix socket instead of the usual TCP socket. Since the system users on the two containers differ ("nginx" and "www-data") they are each added to a secondary "php-fpm" group with gid=3000 so it matches in both containers. The containers must have a shared volume mounted at /sock/php-fpm.sock with group ownership set to "php-fpm" in order for this to work.

Tag summary

Content type

Image

Digest

Size

6.5 MB

Last updated

over 7 years ago

docker pull duffrecords/nginx:stable-alpine