2016-05-28 00:52:58 +02:00
|
|
|
# Sentry On-Premise
|
|
|
|
|
2016-10-12 16:07:05 +02:00
|
|
|
Official bootstrap for running your own [Sentry](https://sentry.io/) with [Docker](https://www.docker.com/).
|
2016-05-28 00:52:58 +02:00
|
|
|
|
2016-05-28 01:18:52 +02:00
|
|
|
## Requirements
|
|
|
|
|
|
|
|
* Docker 1.10.0+
|
|
|
|
* Compose 1.6.0+ _(optional)_
|
|
|
|
|
2016-10-14 04:48:17 +02:00
|
|
|
## Up and Running
|
|
|
|
|
|
|
|
Assuming you've just cloned this repository, the following steps
|
|
|
|
will get you up and running in no time!
|
|
|
|
|
|
|
|
1. `mkdir -p data/{sentry,postgres}` - Make our local database and sentry config directories.
|
|
|
|
This directory is bind-mounted with postgres so you don't lose state!
|
2016-10-14 21:56:28 +02:00
|
|
|
2. `docker-compose run --rm web config generate-secret-key` - Generate a secret key.
|
2016-10-14 04:48:17 +02:00
|
|
|
Add it to `docker-compose.yml` in `base` as `SENTRY_SECRET_KEY`.
|
2016-10-14 21:56:28 +02:00
|
|
|
3. `docker-compose run --rm web upgrade` - Build the database.
|
2016-10-14 04:48:17 +02:00
|
|
|
Use the interactive prompts to create a user account.
|
|
|
|
4. `docker-compose up -d` - Lift all services (detached/background mode).
|
|
|
|
5. Access your instance at `localhost:9000`!
|
|
|
|
|
|
|
|
Note that as long as you have your database bind-mounted, you should
|
|
|
|
be fine stopping and removing the containers without worry.
|
|
|
|
|
2016-10-14 05:16:43 +02:00
|
|
|
## Securing Sentry with SSL/TLS
|
2016-10-14 04:48:17 +02:00
|
|
|
|
2016-10-14 05:16:43 +02:00
|
|
|
If you'd like to protect your Sentry install with SSL/TLS, there are
|
|
|
|
fantastic SSL/TLS proxies like [HAProxy](http://www.haproxy.org/)
|
|
|
|
and [Nginx](https://www.nginx.com/).
|
2016-10-14 04:48:17 +02:00
|
|
|
|
2016-05-28 00:52:58 +02:00
|
|
|
## Resources
|
|
|
|
|
2016-10-12 16:07:05 +02:00
|
|
|
* [Documentation](https://docs.sentry.io/server/installation/docker/)
|
2016-05-28 00:52:58 +02:00
|
|
|
* [Bug Tracker](https://github.com/getsentry/onpremise)
|
2016-10-12 16:07:05 +02:00
|
|
|
* [Forums](https://forum.sentry.io/c/on-premise)
|
2016-05-28 00:52:58 +02:00
|
|
|
* [IRC](irc://chat.freenode.net/sentry) (chat.freenode.net, #sentry)
|