With nginx
https://github.com/nextcloud/docker#base-version---fpm
With caddy
https://caddy.community/t/example-docker-nextcloud-fpm-caddy-v2-webserver/9407
I oersonaly run fpm with caddy
Remember to create your admin account on first run and then add your trusted domain
Admin
allowed domains
docker exec --user www-data container_id php occ config:system:set trusted_domains 2 --value=your_domain_name_here
Both great projects I would also put librephotos to the equation with its feature rich unofficial android client Uhuru photos
All have great android apps and great Dev base
Have tried all three and also tried every other selfhosted image gallery
Photoprim is overall the most mature and complete in features
Yes it requires a third party app to sync your assets but the auto index feature if you sync to their webdav endpoint is killer. This means the proccess from the moment of taking a picture till it shows up in your photoprism gallery is “instant”
Also the unofficial android client is super great and almost android TV compatible
So
To be honest there is not a fair answer You really have to hey them all
:-)