
Deploy Sentry on Your Own Server
Open-source error tracking with full stacktraces & asynchronous context
Want to deploy Sentry on your server faster? Try Senate with one-command setup, automatic HTTPS and monitoring.
What is Sentry?
Open-source error tracking that helps developers monitor and fix crashes in real time. Information about this container: https://hub.docker.com/_/sentry/ Documentation: https://docs.sentry.io/server/ Minimum Hardware Requirements: At least 3GB Ram Not filling this requirement may cause some errors during the initial configuration when running the database migrations. Enter your Sentry Configuration parameters and click on next. The initial installation will take about 5 minutes for the process to finish.
Self-Host Sentry
Follow these steps to deploy on your own server.
Install Docker
Skip this step if Docker is already installed on your server.
curl -fsSL https://get.docker.com | sh
Configure
Customize the settings below. Defaults work for most cases.
General
Deploy
Copy the configuration and run it on your server.
services:
sentry:
environment:
CAP_SENTRY_SUPERUSER_EMAIL: ""
CAP_SENTRY_SUPERUSER_PASSWORD: ""
CAP_SENTRY_VERSION: 9.1.0
SENTRY_DB_NAME: sentry
SENTRY_DB_PASSWORD: ""
SENTRY_DB_USER: sentry
SENTRY_EMAIL_HOST: ""
SENTRY_EMAIL_PASSWORD: ""
SENTRY_EMAIL_PORT: "465"
SENTRY_EMAIL_USER: ""
SENTRY_EMAIL_USE_TLS: "true"
SENTRY_MAILGUN_API_KEY: ""
SENTRY_POSTGRES_HOST: sentry-postgres
SENTRY_REDIS_HOST: sentry-redis
SENTRY_REDIS_PORT: "6379"
SENTRY_SECRET_KEY: ""
SENTRY_SERVER_EMAIL: root@localhost
volumes:
- sentry-data:/var/lib/sentry/files
depends_on:
- sentry-postgres
- sentry-redis
sentry-cron:
environment:
SENTRY_REDIS_HOST: sentry-redis
SENTRY_SECRET_KEY: ""
depends_on:
- sentry
sentry-postgres:
image: postgres:9.6
environment:
POSTGRES_DB: sentry
POSTGRES_PASSWORD: ""
POSTGRES_USER: sentry
volumes:
- sentry-postgres-data:/var/lib/postgresql/data
sentry-redis:
volumes:
- sentry-redis-data:/data
sentry-worker:
environment:
SENTRY_DB_NAME: sentry
SENTRY_DB_PASSWORD: ""
SENTRY_DB_USER: sentry
SENTRY_POSTGRES_HOST: sentry-postgres
SENTRY_REDIS_HOST: sentry-redis
SENTRY_REDIS_PORT: "6379"
SENTRY_SECRET_KEY: ""
depends_on:
- sentry-cron
volumes:
sentry-data: {}
sentry-postgres-data: {}
sentry-redis-data: {}
Then run:
docker compose up -d
Access
Once started, access your app at http://localhost:9000
Why Self-Host Sentry?
Full Data Ownership
Your data stays on your servers. No third-party access.
No Monthly Fees
Pay only for your server. No per-seat or usage charges.
Complete Control
Customize, backup, and scale on your own terms.
Privacy & Compliance
Meet GDPR, HIPAA, or internal security requirements.
Technical Details
Want to go faster?
Try Senate! Senate handles Docker, HTTPS, updates, and monitoring for you. Deploy any of our 300+ apps with a single command.
Install on any Linux server:
sh -c "$(curl -sSL https://get.senate.sh)"