Skip to content

Instantly share code, notes, and snippets.

@rainerhahnekamp
Last active January 23, 2017 22:06
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save rainerhahnekamp/d04c1861af6de42ec8e1b83d27595ac4 to your computer and use it in GitHub Desktop.
docker-compose.yml for sentry with version 2

This is an example for running sentry in docker-compose version 2.

Don't forget to initialize your database. Best way:

docker-compose exec sentry sentry upgrade
version: '2'
services:
redis:
image: redis
postgres:
image: postgres
environment:
POSTGRES_USER: sentry
POSTGRES_PASSWORD: secret
volumes:
- /opt/postges:/var/lib/postgresql/data
sentry:
image: sentry:8.12
ports:
- 8080:9000
environment:
SENTRY_SECRET_KEY: wFyLZvkY6Ggq
POSTGRES_ENV_POSTGRES_USER: sentry
POSTGRES_ENV_POSTGRES_PASSWORD: secret
SENTRY_REDIS_HOST: redis
SENTRY_POSTGRES_HOST: postgres
cron:
image: sentry:8.12
command: sentry run cron
environment:
SENTRY_SECRET_KEY: wFyLZvkY6Ggq
SENTRY_REDIS_HOST: redis
SENTRY_POSTGRES_HOST: postgres
POSTGRES_ENV_POSTGRES_USER: sentry
POSTGRES_ENV_POSTGRES_PASSWORD: secret
worker:
image: sentry:8.12
command: sentry run worker
environment:
SENTRY_SECRET_KEY: wFyLZvkY6Ggq
SENTRY_REDIS_HOST: redis
SENTRY_POSTGRES_HOST: postgres
POSTGRES_ENV_POSTGRES_USER: sentry
POSTGRES_ENV_POSTGRES_PASSWORD: secret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment