Skip to content

Instantly share code, notes, and snippets.

@floweb
Forked from puppybits/docker-compose.yml
Last active July 19, 2016 08:34
Show Gist options
  • Save floweb/46c6e6ff3cd359046aabfc91792a844e to your computer and use it in GitHub Desktop.
Save floweb/46c6e6ff3cd359046aabfc91792a844e to your computer and use it in GitHub Desktop.
sentry docker-compose
sentry-redis:
image: redis
sentry-postgres:
image: postgres
environment:
- POSTGRES_PASSWORD=sentry
- POSTGRES_USER=sentry
volumes:
- ./data/postgresql:/var/lib/postgresql/data
sentry:
image: sentry
environment:
- SENTRY_SECRET_KEY="generate-secret-key"
- SENTRY_POSTGRES_HOST=sentry-postgres
- SENTRY_DB_USER=sentry
- SENTRY_DB_PASSWORD=sentry
- SENTRY_REDIS_HOST=sentry-redis
links:
- sentry-redis:redis
- sentry-postgres:postgres
ports:
- "8081:9000"
sentry-cron:
image: sentry
environment:
- SENTRY_SECRET_KEY="generate-secret-key"
- SENTRY_POSTGRES_HOST=sentry-postgres
- SENTRY_DB_USER=sentry
- SENTRY_DB_PASSWORD=sentry
- SENTRY_REDIS_HOST=sentry-redis
links:
- sentry-redis:redis
- sentry-postgres:postgres
command: sentry run cron
sentry-worker:
image: sentry
environment:
- SENTRY_SECRET_KEY="generate-secret-key"
- SENTRY_POSTGRES_HOST=sentry-postgres
- SENTRY_DB_USER=sentry
- SENTRY_DB_PASSWORD=sentry
- SENTRY_REDIS_HOST=sentry-redis
links:
- sentry-redis:redis
- sentry-postgres:postgres
command: sentry run worker
# This isn't an official docker-compose, please refer to the docs:
# https://hub.docker.com/_/sentry/
# Generate Sentry secret key and update docker-compose.yaml
docker run --rm sentry generate-secret-key
# Databases
docker-compose up -d sentry
# Initial setup (see documentation: )
docker-compose run sentry sentry upgrade
# Run the remaining containers (Celery)
docker-compose up -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment