It will be greatly beneficial for my life and especially my privacy to self-host such software
You should go the Docker route. If you selfhost for yourself you can even use a Raspberry Pi or any common “mini computer” available. Just make sure to install a large enough SSD. 1 terabyte should be fine if you don’t want to use OwnCloud or something like this.