Sentry is an open-source exception logger which you probably know for its SaaS, though "expection logger" doesn't make justice to what it does.
They also provide a free docker setup available so you can run your own sentry platform in your infrastructure, as you can see in their official Docker Hub repository.
Their documentation is pretty good and you should have no problem getting up and running from there. But I must be honest, I'm too lazy to run all those docker run
commands, that's way I've made this docker-compose
setup guide.
This gist is supposed to conver only a very basic setup.