How to configure the php.ini in your docker container

On the root folder of your project where your docker-compose.yml is add a new file to replace some ini file in your PHP container.

Then on your docker-compose.yml file add a volume to your PHP container

volumes:
 -./your_local.ini:/etc/path/to/the/ini/you/want/to/replace/with.ini

Then restart your docker container with --build flag on

docker-compose up --build