Yunohost is doing the installation and finishing with having a XMPP and email server, and from there you can install apps on top of that. You can play with Yunohost inside a container if you wanted to but you will have to prepare the proxy in front of it. If you want to try Yunohost the easiest way, rent a VPS for it.