Hey, thanks for following up. Man, I tried a lot of different things but never could solve it. Also, I specifically wanted it running behind a cloudflare tunnel, on HTTP for the container, and obviously not port 443. I’m not very knowledgeable, so no big surprise that my various tweaks imploded.
What ended up working for me: First I used your MariaDB Compose file. Then I just installed Nextcloud from the base Nextcloud repo. Then I tweaked some volumes and added some variables to get the cloudflare tunnel working. Everything is working great now, from inside and outside my network.
What I have conspicuously not done is any kind of cron configuration. I’ve got scars, man! But I’ll get to that eventually. Thanks again for your interest and help.