I run multiple minidlna instances in Podman and let BubbleUPNP connect to them through Wireguard. Getting the multicast discovery to work was a bit challenging.
People might not like it because bubbleupnp is not open source, but it's a very nice piece of software nonetheless.