10/24/2020
Reading time: 1 mins

Docker compose update php.ini

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
Previous
Update siteurl and home options in wordpress
Next
GraphQl with Neo4j
© 2023 Anil Maharjan