Actually, I’m gonna add another really simple option: Lyrion (Formerly Logitech Media Server). My wife swears by this one, supports local library, integrates with LastFM, and if you use Tidal, Qobuz, Deezer, or Spotify, you can integrate your streaming service with your local library for radio mixes.
Can install it right on a laptop or PC and connect to wherever your music is (local on the machine, on a NAS, etc.). After you install it, you can access it directly via a web browser or webapp, which will make it accessible from desktop or phone.
You didn’t mention your budget. That will impact things.
If you have a closet with a rack you have a lot of options, hardware-wise. If you’ll be running this in your living room, for sake of your sanity, something like an AMD mini-PC with a small NAS for additional hosted storage via NFS would probably be your best bet.
A PC with Proxmox could do this handily. I have a cheap Ryzen 5500u mini PC hosting my Plex server, audiobookshelf, home assistant, and DLNA server (AssetUPnP). It’s only 6 core/12 thread and32GB RAM but still has resources to spare. You could totally do an 8c/16t one and throw more RAM at it.
——
Edit - oh, and don’t forget that if you’re going to be hosting a public instance, you’ll need a good internet connection (with good up and down speed, generally fiber is good for that) and a public IP.