Skip to content

Instantly share code, notes, and snippets.

@saaj
Created April 26, 2020 20:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saaj/b0c0d0612385f977a26355fed679545e to your computer and use it in GitHub Desktop.
Save saaj/b0c0d0612385f977a26355fed679545e to your computer and use it in GitHub Desktop.
Sentry Deployment with Docker Compose
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
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