Skip to content

Instantly share code, notes, and snippets.

@andrefreitas
Last active October 8, 2016 02:41
Show Gist options
  • Save andrefreitas/2c14110e44b314208c83 to your computer and use it in GitHub Desktop.
Save andrefreitas/2c14110e44b314208c83 to your computer and use it in GitHub Desktop.
sentry docker-compose
redis:
image: redis
postgres:
image: postgres
environment:
- POSTGRES_PASSWORD=sentry
- POSTGRES_USER=sentry
volumes:
- /var/lib/postgresql/data
sentry:
image: sentry
links:
- redis
- postgres
ports:
- "8081:9000"
celery-beat:
image: sentry
links:
- redis
- postgres
command: sentry celery beat
celery-worker:
image: sentry
links:
- redis
- postgres
command: sentry celery worker
# Databases
docker-compose up -d redis postgres sentry
# Initial setup
docker exec -it [SENTRY CONTAINER] sentry upgrade
# Run the remaining containers (Celery)
docker-compose up -d
# Run bash in sentry as root
docker exec -it --user=root [SENTRY CONTAINER] bash
@puppybits
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment