wodby / php

Generic PHP docker container images
MIT License
155 stars 103 forks source link

Add env var to choose PHP FPM process manager #7

Closed rubach closed 6 years ago

rubach commented 7 years ago

I'm proposing adding an environment variable that lets you choose the process manager used by PHP FPM. It is set to dynamic in the zz-www.conf.tpl file. It would be nice to have an environment variable that defaults to dynamic, but lets you change it to ondemand or static if wanted.

This article I found states that ondemand can be better in some situations. I noticed a significant memory consumption decrease when I switched to ondemand.

If this added, another environment variable should be included that lets the user set pm.process_idle_timeout.

csandanov commented 6 years ago

Env vars PHP_FPM_PM_ have been added.