Basic conversion of official Docker deployment guide1 to Docker Compose. Should work for Sentry 8.x.
Created
April 26, 2020 20:06
-
-
Save saaj/b0c0d0612385f977a26355fed679545e to your computer and use it in GitHub Desktop.
Sentry Deployment with 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
export SECRET=`docker run --rm sentry config generate-secret-key` | |
docker-compose up -d redis postgres smtp | |
docker-compose run --rm web sentry upgrade | |
docker-compose up -d |
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 | |
smtp: | |
image: tianon/exim4 | |
web: | |
image: sentry | |
environment: | |
- SENTRY_SECRET_KEY=$SECRET | |
links: | |
- redis | |
- postgres | |
- smtp | |
ports: | |
- 80:9000 | |
command: run web | |
cron: | |
image: sentry | |
environment: | |
- SENTRY_SECRET_KEY=$SECRET | |
links: | |
- redis | |
- postgres | |
- smtp | |
command: run cron | |
worker: | |
image: sentry | |
environment: | |
- SENTRY_SECRET_KEY=$SECRET | |
links: | |
- redis | |
- postgres | |
- smtp | |
command: run worker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment