WordPress docker – increase max_upload_filesize

I tried creating a php.ini file within the wp-admin, but system did not pick it up.
I also tried connecting to container and updading the /usr/local/etc/php/php.ini-production which did not work either.

docker exec -it b1047c78d5f9 bash

Look for upload_max_filesize…

2M matches current limit, so lets make a backup and update the settings:
upload_max_filesize 128M
post_max_size 128M
memory_limit 400M
max_execution_time 180
max_input_time 300

Adjust post_max_size to be the same…

NO CHANGES TO THE FOLLOWING

Even after restarting container, system was still showing 2M limit.
I then tried, adding a new file to /usr/local/etc/php/conf.d called php.ini.

This website stores cookies on your computer. These cookies are used to provide a more personalized experience and to track your whereabouts around our website in compliance with the European General Data Protection Regulation. If you decide to to opt-out of any future tracking, a cookie will be setup in your browser to remember this choice for one year.

Accept or Deny