Official bootstrap for running your own Sentry with Docker.
- Docker 1.10.0+
- Compose 1.6.0+ (optional)
- wget -qO- https://get.docker.com/ | sh
- sudo apt-get install python-pip
- sudo pip install -U docker-compose
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.
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!- 配置国内源
sudo vim /etc/docker/daemon.json
{
"registry-mirrors": ["https://registry.docker-cn.com"]
}
docker-compose run --rm web config generate-secret-key
- Generate a secret key. Add it todocker-compose.yml
inbase
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
! docker-compose stop
to stop
Note that as long as you have your database bind-mounted, you should be fine stopping and removing the containers without worry.
If you'd like to protect your Sentry install with SSL/TLS, there are fantastic SSL/TLS proxies like HAProxy and Nginx.
- Documentation
- Bug Tracker
- Forums
- IRC (chat.freenode.net, #sentry)