I’m trying to increase the php memory limit inside my Nextcloud AIO docker install and have had no idea where the php.ini file is stored. If someone could let me know where it’s stored that would be great as there’s no documentation stating the location that I’ve found
I am sorry, I am not a docker expert. I have read a docker tutorial, but am still not sure how to do that …
Are you saying that I have to run docker stop nextcloud-aio-mastercontainer ?
And then I spin up a container from a new image with the environment variables you listed above?:
For Nextcloud AIO, at least the manual-install config file has the var
NEXTCLOUD_MEMORY_LIMIT setting item which should map to PHP_MEMORY_LIMIT for nextcloud php container in AIO.
You can try.
By default is each PHP process in the Nextcloud container limited to a max of 512 MB. You can adjust the memory limit by providing --env NEXTCLOUD_MEMORY_LIMIT=512M to the docker run command of the mastercontainer (but before the last line nextcloud/all-in-one:latest! If it was started already, you will need to stop the mastercontainer, remove it (no data will be lost) and recreate it using the docker run command that you initially used) and customize the value to your fitting. It must start with a number and end with M e.g. 1024M.
This is part of readme.md of Nextcloud All-in-one, the AIO project.
For my understanding, PHP_MEMORY_LIMIT is the standard variable,
And AIO use NEXTCLOUD_MEMORY_LIMIT and transfer it to PHP_MEMORY_LIMIT of the nextcloud app container
as AIO has multiple containers.