wodby / php

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

No access to environment variables outside of dev images #35

Closed bvalerius closed 6 years ago

bvalerius commented 6 years ago

Running 5.6-dev gives me access to the environment vars I'm passing in through docker-compose, running non-dev image does not. Is this intended? How can I access them on the production ready images?

csandanov commented 6 years ago

You can set PHP_FPM_CLEAR_ENV=no, by default it's yes for security reasons. Alternatively you can specify a list of accessible env vars via PHP_FPM_ENV_VARS (json array).

serhatozkara commented 4 years ago

setting PHP_FPM_ENV_VARS does not have effect on non-dev images. also, usage is not clear.