Analytics cookies only (Google Analytics, PostHog). No ad networks, no cross-site tracking. See our privacy policy.
The full self-hosted edition of Sentry's error tracking and performance monitoring: exceptions, stack traces, releases, alerts, tracing, session replay and profiling, using the same SDKs as the hosted product. The upstream self-hosted repository is a Docker Compose blueprint of about 50 containers (Kafka, ClickHouse, Postgres, Snuba, Relay and more) licensed under the Functional Source License (FSL-1.1-Apache-2.0) — source-available, converting to Apache 2.0 after two years — and it needs 4 CPU cores and 16 GB of RAM at minimum.
Fits home hardware (13,284 MB measured idle, RAM only): AMD Ryzen mini PC (32 GB).
Pick the full Sentry stack only when you specifically need Sentry itself: its SDK ecosystem, tracing, session replay and profiling on your own hardware, with data that never leaves your network. It is a heavy install, not a small tool. If you only need exception tracking with the same SDKs, GlitchTip or Bugsink do that in a few hundred MB of RAM instead of 13 GB.
Follow the Sentry deploy guide →Run these commands on your server:
# Sentry self-hosted — the official repo at release 26.9.0, bound to loopback behind Caddy for automatic HTTPS, per our Sentry deploy guide. Needs 4 CPU cores and 16 GB RAM (the stack uses about 13 GB), a domain pointed at this server and ports 80/443 open.
# 16 GB swap is required: without it Symbolicator is OOM-killed (exit 137)
sudo fallocate -l 16G /swapfile && sudo chmod 600 /swapfile && sudo mkswap /swapfile && sudo swapon /swapfile
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
git clone https://github.com/getsentry/self-hosted.git && cd self-hosted
git checkout 26.9.0
# overrides live in .env.custom (an upgrade would conflict with edits to .env): web port on loopback only, and a random secret instead of the default 'supersecret'
printf 'SENTRY_BIND=127.0.0.1:9000\nLAUNCHPAD_RPC_SHARED_SECRET=%s\n' "$(openssl rand -hex 16)" > .env.custom
# --skip-user-creation: non-interactive; --no-report-self-hosted-issues: no install telemetry. A harmless IP-geolocation (MaxMind) error at the end is expected.
./install.sh --skip-user-creation --no-report-self-hosted-issues
DOMAIN=sentry.example.com
# tell Sentry its public HTTPS address and enable the reverse-proxy settings
sed -i "s|^# system.url-prefix:.*|system.url-prefix: https://$DOMAIN|" sentry/config.yml
sed -i -e 's|^# SECURE_PROXY_SSL_HEADER|SECURE_PROXY_SSL_HEADER|' -e 's|^# USE_X_FORWARDED_HOST|USE_X_FORWARDED_HOST|' -e 's|^# SESSION_COOKIE_SECURE|SESSION_COOKIE_SECURE|' -e 's|^# CSRF_COOKIE_SECURE|CSRF_COOKIE_SECURE|' -e 's|^# SOCIAL_AUTH_REDIRECT_IS_HTTPS|SOCIAL_AUTH_REDIRECT_IS_HTTPS|' sentry/sentry.conf.py
echo "CSRF_TRUSTED_ORIGINS = [\"https://$DOMAIN\"]" >> sentry/sentry.conf.py
# every compose command needs both env files because of .env.custom; first start takes several minutes
sc() { docker compose --env-file .env --env-file .env.custom "$@"; }
sc up --wait
# Caddy gets and renews the Let's Encrypt certificate and proxies to the loopback port
mkdir -p ~/caddy && printf '%s {\n\treverse_proxy 127.0.0.1:9000\n}\n' "$DOMAIN" > ~/caddy/Caddyfile
docker run -d --name caddy --restart unless-stopped --network host -v ~/caddy/Caddyfile:/etc/caddy/Caddyfile:ro -v caddy_data:/data caddy:2
# create the first superuser (replace the email); the generated password is printed on the next line
PW=$(openssl rand -hex 12); sc run --rm -T web createuser --email you@example.com --password "$PW" --superuser; echo "$PW"
# then open https://sentry.example.com. On the setup screen leave Allow Registration off, and untick the CPU/RAM usage report if you do not want it sent to Sentry.Self-hosted Sentry is a blueprint for a whole platform, so the cost shows up in resources and maintenance:
Sentry used 13284 MB of RAM at idle on GCP e2-standard-4 · Ubuntu 26.04 LTS · Docker 29.9.0 (first boot, measured Oct 2026). We list a minimum of 16384 MB.
The Sentry install snippet is marked verified on Ubuntu 26.04 (Oct 2026).