You need a hardware like a raspberry pi 3 or 4 then you install a distro server like yunohost, which also gives you many other services like email, chat, cloud storage and many more. Then you install nextcloud and inside nextcloud there's next cloud music, you install it, move your music there and use a client like subsonic on your phone. Done