Git Product home page Git Product logo

sentry-setup's Introduction

Sentry

How to setup Sentry.io (open source) server in Docker Compose

Sentry Architecture

Docker Compose

Redis

  • Service #1

Image:

redis:latest

Volumes:

- './data/sentry/redis/data:/data'

PostgreSQL

  • Service #2

Image:

postgres:latest

Environment:

POSTGRES_USER: sentry
POSTGRES_PASSWORD: 89PsZXyRStOT2
POSTGRES_DB: sentry

Volumes:

- './data/sentry/postgres:/var/lib/postgresql/data'

Sentry Base

  • Service #3

Image:

sentry:latest

Ports:

- '9000:9000'

Environment File:

.env

depends_on:

- sentry-redis
- sentry-postgres

Volumes:

- './data/sentry/sentry:/var/lib/sentry/files'

.env:

SENTRY_SECRET_KEY==(r&r()bsat53avyq5a-4tpe8eibsfa5m6ut@42afjdkx@5*s
SENTRY_POSTGRES_HOST=sentry-postgres
SENTRY_POSTGRES_PORT=5432
SENTRY_DB_NAME=sentry
SENTRY_DB_USER=sentry
SENTRY_DB_PASSWORD=a6HlxEp72ONSg
SENTRY_REDIS_HOST=sentry-redis
SENTRY_REDIS_PORT=6379

Sentry Cron

  • Service #4

Image:

sentry:latest

Environment File:

.env

depends_on:

- sentry-redis
- sentry-postgres

Volumes:

- './data/sentry/sentry:/var/lib/sentry/files'

Command:

sentry run cron

Sentry Worker

  • Service #5

Image:

sentry:latest

Environment File:

.env

depends_on:

- sentry-redis
- sentry-postgres

Volumes:

- './data/sentry/sentry:/var/lib/sentry/files'

Command:

sentry run worker

# Let's GO

Generate secret key

docker-compose run --rm sentry-base config generate-secret-key

And then set generated key to SENTRY_SECRET_KEY in .env.

Initialize database

If this is a new database, you'll need to run upgrade.

docker-compose run --rm sentry-base upgrade

And create an initial user, if you need.

Service Start

docker-compose up -d

And open http://localhost:9000

sentry-setup's People

Contributors

ramhm avatar nodir-malikov avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.