-
-
Save puppybits/426319191bd4981cf6c8d9b6b06c6d46 to your computer and use it in GitHub Desktop.
sentry docker-compose
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
redis: | |
image: redis | |
postgres: | |
image: postgres | |
environment: | |
- POSTGRES_PASSWORD=sentry | |
- POSTGRES_USER=sentry | |
volumes: | |
- /var/lib/postgresql/data | |
sentry: | |
image: sentry | |
environment: | |
- SENTRY_SECRET_KEY=generate-secret-key | |
links: | |
- redis | |
- postgres | |
ports: | |
- "8081:9000" | |
celery-beat: | |
image: sentry | |
environment: | |
- SENTRY_SECRET_KEY=generate-secret-key | |
links: | |
- redis | |
- postgres | |
command: sentry celery beat | |
celery-worker: | |
image: sentry | |
environment: | |
- SENTRY_SECRET_KEY=generate-secret-key | |
links: | |
- redis | |
- postgres | |
command: sentry celery worker |
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
# Generate Sentry secret key and update docker-compose.yaml | |
docker run --rm sentry generate-secret-key | |
# Databases | |
docker-compose up -d redis postgres sentry | |
# Initial setup | |
docker exec -it [SENTRY CONTAINER] sentry upgrade | |
# Run the remaining containers (Celery) | |
docker-compose up -d | |
# Run bash in sentry as root | |
docker exec -it --user=root [SENTRY CONTAINER] bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for sharing this! Just one change, I found I had to do
sentry config generate-secret-key
-- https://docs.sentry.io/server/cli/config/generate-secret-key/