I've talked mad shit about Nextcloud repeatedly. That said, I keep trying it. Almost compelled to make it work for me. This stubbornness lead me to NextcloudPi. And I don't know what they do to that image/build, but it works very well on my Pi 4 w/4GB. Then I tried it in a docker container on my main server and it ran like trash again. So, ymmv? Easy enough to stand it up for a test though.
I'm a huge fan of Seafile. It's the best Google drive/Dropbox replacement, imo. It does support Collabora or Open Office integration as well, but I can't get that to work. Take that as a sign of me still learning rather than a slight against the product. I will say though, their documentation needs work. It's quite a mess.