Clean and backupable on-premise deployment of Sentry using Docker COmpose
7e48342757
Fixes #191 . |
||
---|---|---|
.dockerignore | ||
.env.example | ||
.gitignore | ||
config.yml | ||
docker-compose.yml | ||
Dockerfile | ||
LICENSE | ||
Makefile | ||
README.md | ||
requirements.txt | ||
sentry.conf.py |
Sentry On-Premise
Official bootstrap for running your own Sentry with Docker.
Requirements
- Docker 1.10.0+
- Compose 1.17.0+ (optional)
Minimum Hardware Requirements:
- You need at least 3GB Ram
Up and Running
Assuming you've just cloned this repository, the following steps will get you up and running in no time!
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.
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.cp -n .env.example .env
- create env config filedocker-compose build
- Build and tag the Docker servicesdocker-compose run --rm web config generate-secret-key
- Generate a secret key. Add it to.env
asSENTRY_SECRET_KEY
.docker-compose run --rm web upgrade
- Build the database. Use the interactive prompts to create a user account.docker-compose up -d
- Lift all services (detached/background mode).- Access your instance at
localhost:9000
!
Securing Sentry with SSL/TLS
If you'd like to protect your Sentry install with SSL/TLS, there are fantastic SSL/TLS proxies like HAProxy and Nginx.
Updating Sentry
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.
Use the following steps after updating this repository or your Dockerfile:
docker-compose build --pull # Build the services again after updating, and make sure we're up to date on patch version
docker-compose run --rm web upgrade # Run new migrations
docker-compose up -d # Recreate the services
Resources
- Documentation
- Bug Tracker
- Forums
- IRC (chat.freenode.net, #sentry)