Cannot Hook Into PHP Folder via Docker

Hello, I am currently experimenting with Docker and right now is that, by default, Nextcloud has a 2MB upload limit (from PHP). I want to edit that and cannot do it via NextCloud so I have to edit the php.ini itself,

After experiment, I found out where the php.ini is located, via this log:

However, when trying to hook into “/usr/local/etc”, i get a blank directory. This is my docker-compose:

The HTML folder shows everything fine, not the PHP. How come?

what did you put into the folder /docker/nc/nextcloud/php?

why not to put your additional config into


upload_max_filesize = 2048M
post_max_size = 2048M
max_execution_time = 200
memory_limit = 512M

and map only this file to the container

       - /docker/nc/nextcloud/php/nextcloud-uploadsize.ini:/usr/local/etc/php/conf.d/nextcloud-uploadsize.ini
       - /docker/nc/nextcloud/html:/var/www/html