

As the result of a single misconfigured security setting on my Android, I was locked out of my Google Account on my phone AND all of my PCs.
Just a heads up on what you are getting yourself into, if you fuck up your self hosted setup badly enough there is no recovery.
That isn’t necessarily intended to scare you off from self hosting, just that the first and most important lesson to learn is to have a good system of backups that are backed up automatically, are easy to recover from, and are separated enough from other copies of the data that if something goes terribly wrong one copy will survive.


Some of those services are pretty easy to set up, some might be more complicated. You’d have to look around for open source projects for those services and see if you can find ones you like. It will take more time to get it initially set up than to maintain, but expect to fix something that breaks every once in a while.
As for cost, probably like a few hundred to a thousand USD can get a reasonable computer for this. You don’t need a GPU, but want a decent CPU, plenty of RAM, and a LOT of storage. Look for companies auctioning off old servers.
Loosely I’d say expect this project to be a whole hobby.