Last active
October 8, 2016 02:41
-
-
Save andrefreitas/2c14110e44b314208c83 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 | |
links: | |
- redis | |
- postgres | |
ports: | |
- "8081:9000" | |
celery-beat: | |
image: sentry | |
links: | |
- redis | |
- postgres | |
command: sentry celery beat | |
celery-worker: | |
image: sentry | |
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
# 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
Sentry needs a key as well: https://gist.github.com/puppybits/426319191bd4981cf6c8d9b6b06c6d46