Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
version: '2'
services:
redis:
image: redis
postgres:
image: 'postgres'
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DBNAME: sentry
POSTGRES_DBUSER: sentry
POSTGRES_DBPASS: sentry
volumes:
- ~/sentry/data:/var/lib/postgresql/data
sentry:
image: sentry
depends_on:
- redis
- postgres
links:
- redis
- postgres
ports:
- 9000:9000
environment:
SENTRY_SECRET_KEY: '<SECRET-KEY>'
SENTRY_POSTGRES_HOST: postgres
SENTRY_DB_USER: postgres
SENTRY_DB_PASSWORD: postgres
SENTRY_REDIS_HOST: redis
SENTRY_SERVER_EMAIL: '<FROM-EMAIL>'
SENTRY_EMAIL_HOST: <EMAIL-HOST>
SENTRY_EMAIL_PORT: <EMAIL-PORT>
SENTRY_EMAIL_USER: '<USER-NAME>'
SENTRY_EMAIL_PASSWORD: '<USER-PASSWD>'
SENTRY_EMAIL_USE_TLS: 'true'
sentry-cron:
image: sentry
depends_on:
- redis
- postgres
command: "sentry run cron"
environment:
SENTRY_SECRET_KEY: '<SECRET-KEY>'
SENTRY_POSTGRES_HOST: postgres
SENTRY_DB_USER: postgres
SENTRY_DB_PASSWORD: postgres
SENTRY_REDIS_HOST: redis
SENTRY_SERVER_EMAIL: '<FROM-EMAIL>'
SENTRY_EMAIL_HOST: <EMAIL-HOST>
SENTRY_EMAIL_PORT: <EMAIL-PORT>
SENTRY_EMAIL_USER: '<USER-NAME>'
SENTRY_EMAIL_PASSWORD: '<USER-PASSWD>'
SENTRY_EMAIL_USE_TLS: 'true'
sentry-worker-1:
image: sentry
depends_on:
- redis
- postgres
command: "sentry run worker"
environment:
SENTRY_SECRET_KEY: '<SECRET-KEY>'
SENTRY_POSTGRES_HOST: postgres
SENTRY_DB_USER: postgres
SENTRY_DB_PASSWORD: postgres
SENTRY_REDIS_HOST: redis
SENTRY_SERVER_EMAIL: '<FROM-EMAIL>'
SENTRY_EMAIL_HOST: <EMAIL-HOST>
SENTRY_EMAIL_PORT: <EMAIL-PORT>
SENTRY_EMAIL_USER: '<USER-NAME>'
SENTRY_EMAIL_PASSWORD: '<USER-PASSWD>'
SENTRY_EMAIL_USE_TLS: 'true'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment