- Download docker-compose.yml to dir named
sentry
- Change SENTRY_SECRET_KEY to random 32 char string
- Run
docker-compose up -d
- Run
docker exec -it sentry_sentry_1 sentry upgrade
to setup database and create admin user - Run
docker exec -it pip install sentry-slack
if you want slack plugin, it can be done later - Run
docker restart sentry_sentry_1
- Sentry is now running on public port 9000
-
-
Save J4si3k/dcaa0b0c6fae1531f1e21389f10a9495 to your computer and use it in GitHub Desktop.
Simple Sentry docker-compose.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
volumes: | |
pgdb: | |
services: | |
redis: | |
image: redis | |
postgres: | |
image: postgres | |
environment: | |
POSTGRES_USER: sentry | |
POSTGRES_PASSWORD: sentry | |
POSTGRES_DBNAME: sentry | |
POSTGRES_DBUSER: sentry | |
POSTGRES_DBPASS: sentry | |
volumes: | |
- pgdb:/var/lib/postgresql/data | |
sentry: | |
image: sentry | |
links: | |
- redis | |
- postgres | |
ports: | |
- 9000:9000 | |
environment: | |
SENTRY_SECRET_KEY: '!!!SECRET!!!' | |
SENTRY_POSTGRES_HOST: postgres | |
SENTRY_DB_USER: sentry | |
SENTRY_DB_PASSWORD: sentry | |
SENTRY_REDIS_HOST: redis | |
cron: | |
image: sentry | |
links: | |
- redis | |
- postgres | |
command: "sentry run cron" | |
environment: | |
SENTRY_SECRET_KEY: '!!!SECRET!!!' | |
SENTRY_POSTGRES_HOST: postgres | |
SENTRY_DB_USER: sentry | |
SENTRY_DB_PASSWORD: sentry | |
SENTRY_REDIS_HOST: redis | |
worker: | |
image: sentry | |
links: | |
- redis | |
- postgres | |
command: "sentry run worker" | |
environment: | |
SENTRY_SECRET_KEY: '!!!SECRET!!!' | |
SENTRY_POSTGRES_HOST: postgres | |
SENTRY_DB_USER: sentry | |
SENTRY_DB_PASSWORD: sentry | |
SENTRY_REDIS_HOST: redis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name sentry.example.com; | |
location / { | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header Host $host; | |
proxy_pass http://127.0.0.1:9000; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment