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)_
2019-04-13 00:02:40 +02:00
## Minimum Hardware Requirements:
* You need at least 3GB Ram
2016-05-28 01:18:52 +02:00
2016-10-14 04:48:17 +02:00
## Up and Running
2016-11-11 05:15:24 +01:00
Assuming you've just cloned this repository, the following steps
2016-10-14 04:48:17 +02:00
will get you up and running in no time!
2016-11-11 05:15:24 +01:00
There may need to be modifications to the included `docker-compose.yml` file to accommodate your needs or your environment. These instructions are a guideline for what you should generally do.
2018-10-17 19:02:22 +02:00
1. `docker volume create --name=sentry-data && docker volume create --name=sentry-postgres` - Make our local database and sentry volumes
Docker volumes have to be created manually, as they are declared as external to be more durable.
2. `cp -n .env.example .env` - create env config file
3. `docker-compose build` - Build and tag the Docker services
4. `docker-compose run --rm web config generate-secret-key` - Generate a secret key.
Add it to `.env` as `SENTRY_SECRET_KEY` .
5. `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.
2018-10-17 19:02:22 +02:00
6. `docker-compose up -d` - Lift all services (detached/background mode).
7. Access your instance at `localhost:9000` !
2016-10-14 04:48:17 +02:00
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
2016-11-11 05:15:24 +01:00
fantastic SSL/TLS proxies like [HAProxy ](http://www.haproxy.org/ )
2016-10-15 06:35:53 +02:00
and [Nginx ](http://nginx.org/ ).
2016-10-14 04:48:17 +02:00
2018-07-13 16:28:45 +02:00
## Updating Sentry
2018-07-13 17:53:24 +02:00
Updating Sentry using Compose is relatively simple. Just use the following steps to update. Make sure that you have the latest version set in your Dockerfile. Or use the latest version of this repository.
2018-07-13 16:28:45 +02:00
Use the following steps after updating this repository or your Dockerfile:
```sh
2019-05-06 23:16:30 +02:00
docker-compose build --pull # Build the services again after updating, and make sure we're up to date on patch version
2018-07-13 16:28:45 +02:00
docker-compose run --rm web upgrade # Run new migrations
docker-compose up -d # Recreate the services
```
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 )