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.
Fell free to share any improviments.
First: Create your docker-compose.yml
file using mine as template. You might want to change a few environment variables, such as SENTRY_EMAIL*
ones.
Second: Run docker-compose up -d --build
. This will build all services necessary as demon (they will be running in the background).
Third: Now all your services are running, but you need to run the initial configuration: run docker-compose exec sentry bash ./entrypoint.sh upgrade
.
This is start an interactive shell. Make sure to create your user when you are prompted to and set it as superuser.
That's it, now browse to your local sentry at http://localhost:8080.