Skip to content

5. How to use PHP FPM or HHVM

Michael Härtl edited this page Sep 9, 2015 · 1 revision

If you prefer to use the php-fpm or HHVM base image, you will need two containers, one for the php-fpm/HHVM process and one for nginx. There's already a commented out example in the docker-compose-example.yml file.

You may also want to modify the Nginx configuration in nginx/nginx.conf. The most important setting here is the hostname of the php-fpm container. This must match whatever you have used in your docker-compose.yml for the app container. Default is app:

fastcgi_pass   app:9000;
Clone this wiki locally