Setting PHP memory_limit variable as a parameter in docker-compose
#211
Unanswered
michalpulpan
asked this question in
Q&A
Replies: 1 comment
-
|
Have a peek at the options that are also available in the image but not directly listed in the README: Image Description In your case |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi 👋 , first of all, thank you for an amazing work.
Some context - recently we started having some issues with memory in our Freescout instance (
Allowed memory size of 2147483648 bytes exhausted (tried to allocate 5323576 bytes)).So we tried to set
memory_limit = 1024Minphp.iniandphp_admin_value[memory_limit] = 1024Minphp-fpm.confas stated in Freescout docs: https://github.com/freescout-help-desk/freescout/wiki/Installation-Guide#allowed-memory-size-of-nnn-bytes-exhausted-error-when-fetching-large-attachments. This helped solve the issue.So we edited the files
php.iniandphp-fpm.conflocally and binded them into our containers into the path/etc/php82/. This is not perfect for many reasons 😄 .My question is - is there some smarter way to define
memory_limitparam? Thanks!Beta Was this translation helpful? Give feedback.
All reactions