-
-
Save floweb/46c6e6ff3cd359046aabfc91792a844e to your computer and use it in GitHub Desktop.
sentry docker-compose
This file contains hidden or 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
sentry-redis: | |
image: redis | |
sentry-postgres: | |
image: postgres | |
environment: | |
- POSTGRES_PASSWORD=sentry | |
- POSTGRES_USER=sentry | |
volumes: | |
- ./data/postgresql:/var/lib/postgresql/data | |
sentry: | |
image: sentry | |
environment: | |
- SENTRY_SECRET_KEY="generate-secret-key" | |
- SENTRY_POSTGRES_HOST=sentry-postgres | |
- SENTRY_DB_USER=sentry | |
- SENTRY_DB_PASSWORD=sentry | |
- SENTRY_REDIS_HOST=sentry-redis | |
links: | |
- sentry-redis:redis | |
- sentry-postgres:postgres | |
ports: | |
- "8081:9000" | |
sentry-cron: | |
image: sentry | |
environment: | |
- SENTRY_SECRET_KEY="generate-secret-key" | |
- SENTRY_POSTGRES_HOST=sentry-postgres | |
- SENTRY_DB_USER=sentry | |
- SENTRY_DB_PASSWORD=sentry | |
- SENTRY_REDIS_HOST=sentry-redis | |
links: | |
- sentry-redis:redis | |
- sentry-postgres:postgres | |
command: sentry run cron | |
sentry-worker: | |
image: sentry | |
environment: | |
- SENTRY_SECRET_KEY="generate-secret-key" | |
- SENTRY_POSTGRES_HOST=sentry-postgres | |
- SENTRY_DB_USER=sentry | |
- SENTRY_DB_PASSWORD=sentry | |
- SENTRY_REDIS_HOST=sentry-redis | |
links: | |
- sentry-redis:redis | |
- sentry-postgres:postgres | |
command: sentry run worker |
This file contains hidden or 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
# This isn't an official docker-compose, please refer to the docs: | |
# https://hub.docker.com/_/sentry/ | |
# Generate Sentry secret key and update docker-compose.yaml | |
docker run --rm sentry generate-secret-key | |
# Databases | |
docker-compose up -d sentry | |
# Initial setup (see documentation: ) | |
docker-compose run sentry sentry upgrade | |
# Run the remaining containers (Celery) | |
docker-compose up -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment