I’ve updated the desktop app on my Mac and now there is a PHP memory limit warning in the health check section. I’m running the latest docker image at the time of this writing, ie. 5.5.22
I am new to Invoice Ninja. I performed the docker install (ver v5.5.24-C93). I am getting the “PHP memory limit is too low” on the same pop-up above. I’ve searched forum, github and google seeking directions for how one can increase php memory limit. The best I could find is editing /usr/local/etc/php/php.ini, but this location/file does not exist in either the server or app containers.
Can someone provide needed instructions for updating docker install?
Aside: Why doesn’t the image come preconfigured with 512M memory limit?
If you’re using Docker you can ignore that warning, it will be hidden in a future version of the app. This is the command to update the app using Docker:
docker-compose down
docker-compose pull
docker-compose up
It turns out I was able to resolve the issue by mapping a new file volume to the app container within the docker-compose.yml file. I simply appended the app container volumes with:
Copied the container php.ini to the local filesystem: $ docker cp <containerid>:/usr/local/etc/php/php.ini ./php-ninja/php.ini
Modified the local copy memory_limit=512M
Added new volume mapping to docker-compose.yml:
./php-ninja/php.ini:/usr/local/etc/php/php.ini