Setting upload filesize to > 2MB in docker environment #952
-
I'm running Leantime with docker compose on a Raspberry Pi. Is there a way to configure post_max_size and upload_max_filesize in php.ini for the image or do I need to build my own image and override php.ini? The same question basically applies for other config vars as listed in https://docs.leantime.io/#/installation/configuration - what's the recommended way to set these in a docker environment? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
We can add that value into our config but that will require a new image. The other option I could see is to mount a volume containing the custom ini. That way you have full control. The path in the docker image is |
Beta Was this translation helpful? Give feedback.
-
Let me know if that works... I haven't tried it myself.
I assume you need to restart the instance every time you make a change.
…On Tue, Sep 13, 2022 at 4:47 PM arminus ***@***.***> wrote:
Great, hadn't thought about the volume override option. Thanks for
pointing that out!
—
Reply to this email directly, view it on GitHub
<#952 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALG4EFTZY3LNHFVFEJ7JSFLV6DR4RANCNFSM6AAAAAAQLZE6IE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Just tested this, it's working ok:
added
added this line to the docker-compose.yml volumes section: restarted the container |
Beta Was this translation helpful? Give feedback.
We can add that value into our config but that will require a new image. The other option I could see is to mount a volume containing the custom ini. That way you have full control. The path in the docker image is
/usr/local/etc/php/conf.d/custom.ini