Just playing around with my custom docker and Caddy build myself. I’m the opposite of yours (I’m on a Pi)
But rather than upping the memory limit, increase the number of pm.max_children in php-fpm/conf.d/zzz-max-children.ini or make it static. In my Dockerfile code I did this
COPY <<EOF /usr/local/etc/php-fpm.d/zzz-max-children.conf
[www]
pm.max_children = 20
EOF
And then on the Caddyfile for the external server I added a http transport limit to be 20 per host that way the Caddy + PHP-FPM that is being proxied won’t exceed the children amount.
I’m still playing around with it Comparing nextcloud:master...trajano:master · nextcloud/docker · GitHub but I may abandon this project and switch to Immich as So long, Nextcloud - #4 by saettel.beifuss0 had recommended.
I will kind of miss the OneDrive like functionality and shared contact list feature (useful for the family to keep doctors updated). But the main reason for this project for me was because of Google disabling key APIs for gphoto-sync.
I kind of like the concept of this NextCloud still given the week I spent with it. But silly things like Vue/ReactJS errors on the console and deprecation in log messages are irking me now as a dev.