I built entire service [0], because I wanted to chat in matrix (protocol [1]). It's quite hard to selfhost it properly, so I ended with lots of automatization, based on open source stack.
Now I can setup a homeserver in ~20 minutes with lots of additions and customizations.