Nginx image compatible with PHP-FPM on a unix socket
178
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.
Content type
Image
Digest
Size
6.5 MB
Last updated
over 7 years ago
docker pull duffrecords/nginx:stable-alpine