If you want to quickly deploy Matrix (and all the related goodies) on your server,I highly recommend https://github.com/spantaleev/matrix-docker-ansible-deploy. It's one of the best maintained project I've seen, a pleasure to install, maintain and upgrade.