I never heard of Cozy, but it looks quite nice. The Self-Hosting Documentation ist a bit lacking, but https://github.com/cozy/cozy-stack-compose contains all required information to set it it up yourself.
I originally used Nextcloud, but it has a lot of features not related to file hosting
Cozy seems to be in a similar situation, where file storage is just one of many features that it provides. If you want just files, it might be the best idea to just use any WebDAV Server or something like File Browser.
I would prefer manually writing each software using butterflies over having
snapd
installed on my system.