After watching a video on Linus Tech Tips. I've set up Pi-hole and a DoH proxy using Cloudflared, the only issue I faced was that there was no pre-compiled binary available for aarch64, other than that things are pretty good. The setup is being run on a NanoPi Neo 2 connected to my router via ethernet and is being powered by my router's USB port.