Custom php.ini to the docker library php using docker-compose config

An approach that adds additional ini files to be parsed by php by just adding two lines to your docker-compose.yml. It’s a convenient practice for small projects without ad-hoc tailoring to use prebuilt images from docker hub. Sometimes we need to change some php.ini settings for a php container, for example, increasing upload_max_filesize parameter. The…