Instead of a RaspberryPi, use a small form factor PC. It will have more power (downside is it will consume more electricity) but give you more options to upgrade or host more services in the future should your needs change. You can find these on eBay or used for not much more money than a Pi these days. Would replace the nvme drive with a fresh one.
There are ones from Dell, HP, Lenovo etc in this small form factor.
You can look into Proxmox as a virtualization solution.

ServeTheHome
Lenovo ThinkCentre M920 and M920q Tiny Guide and Review
In our Lenovo ThinkCentre M920 Tiny (M920q) Project TinyMiniMicro guide and review, we go into what sets this unit apart from its competition