Skip to content

zentekmx/docker-compose-sentry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

sentry-compose

docker-compose for sentry at http://sentry.io

Setup

Create the .env file for docker secrets:

SENTRY_SECRET_KEY=...  # 32 random chars
SENTRY_POSTGRES_HOST=...
SENTRY_DB_USER=...
SENTRY_DB_PASSWORD=...

Run with docker-compose:

docker-compose up -d
docker-compose exec sentry sentry upgrade
docker-compose restart sentry

Reverse proxy config:

    http {
        # ...

        upstream web {
            server localhost:9000;
        }
        server {
            listen 80 default_server;
            server_name _;

            location / {
                    proxy_pass http://web;
                    proxy_set_header X-Real-IP $remote_addr;
                    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                    proxy_set_header Host $host;
            }
        # ...

Getting Started

Django

Append to production.py settings:

import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration
from sentry_sdk.integrations.celery import CeleryIntegration

# ...
sentry_sdk.init(
    dsn=os.environ.get('SENTRY_DSN'),
    integrations=[DjangoIntegration(), CeleryIntegration()],
    environment='production'
)
Supporte frameworks

Extras

Integrations

For installing plugins, run:

docker-compose exec sentry pip install sentry-slack

Reference

Take a look at the docs for more information:

About

Docker compose for sentry at http://sentry.io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published