This variant contains PHP's FastCGI Process Manager (FPM), which is the recommended FastCGI implementation for PHP.
In order to use this image variant, some kind of reverse proxy (such as NGINX, Apache, or other tool which speaks the FastCGI protocol) will be required.
Some potentially helpful resources:
- FPM's Official Configuration Reference
- Simplified example by @md5
- Very detailed article by Pascal Landau
- Stack Overflow discussion
- Apache httpd Wiki example
WARNING: the FastCGI protocol is inherently trusting, and thus extremely insecure to expose outside of a private container network -- unless you know exactly what you are doing (and are willing to accept the extreme risk), do not use Docker's --publish
(-p
) flag with this image variant.