Skip to content

Instantly share code, notes, and snippets.

@Fabricio20
Created July 9, 2018 18:38
Show Gist options
  • Save Fabricio20/5b2a7852281c331e826efa2620f12174 to your computer and use it in GitHub Desktop.
Save Fabricio20/5b2a7852281c331e826efa2620f12174 to your computer and use it in GitHub Desktop.
Dockerized Sentry
version: '2'
volumes:
pgdb:
services:
sentry_redis:
image: redis
sentry_postgres:
image: postgres
environment:
POSTGRES_USER: sentry
POSTGRES_PASSWORD: sentry
POSTGRES_DB: sentry
volumes:
- pgdb:/var/lib/postgresql/data
sentry:
image: sentry
links:
- sentry_redis
- sentry_postgres
ports:
- 9000:9000
environment:
SENTRY_SECRET_KEY: 'SENTRY_PASSWORD'
SENTRY_POSTGRES_HOST: sentry_postgres
SENTRY_DB_USER: sentry
SENTRY_DB_PASSWORD: sentry
SENTRY_REDIS_HOST: sentry_redis
sentry_cron:
image: sentry
links:
- sentry_redis
- sentry_postgres
command: "sentry run cron"
environment:
SENTRY_SECRET_KEY: 'SENTRY_PASSWORD'
SENTRY_POSTGRES_HOST: sentry_postgres
SENTRY_DB_USER: sentry
SENTRY_DB_PASSWORD: sentry
SENTRY_REDIS_HOST: sentry_redis
sentry_worker:
image: sentry
links:
- sentry_redis
- sentry_postgres
command: "sentry run worker"
environment:
SENTRY_SECRET_KEY: 'SENTRY_PASSWORD'
SENTRY_POSTGRES_HOST: sentry_postgres
SENTRY_DB_USER: sentry
SENTRY_DB_PASSWORD: sentry
SENTRY_REDIS_HOST: sentry_redis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment