nextcloud:fpm docker image, setting custom php.ini

Hello,
I am starting my journey with nextcloud - just installed nextcloud:fpm and I’m just wondering, how to use custom php.ini?
I need to increase timeouts and upload_max_filesize

Some of the parameters are managed via environment variables. See the image docs (i.e. PHP Configuration).

Other customization can occur by placing additional config files in /usr/local/etc/php/conf.d within the image (either via Compose volume mounts or via Dockerfile if doing custom builds).

please review this sophisticated guide Nextcloud docker compose setup with Caddy (2024)