Triagebellfor Sentry
Guide

Self-hosted Sentry: requirements, setup and real costs

By the Triagebell team · Updated · 3 min read · How we check guides

Short answer

Self-hosted Sentry is the official Docker Compose package in the getsentry/self-hosted repository. It needs at least 4 CPU cores, 16 GB RAM plus 16 GB swap (32 GB RAM recommended), 20 GB of free disk, Docker 19.03.6 and Docker Compose 2.32.2. There is no licence fee: the code is under the Functional Source License, so you can run it for your own use but not sell it as a competing service. The real cost is the server, monthly upgrades and the SaaS features you go without.

Steps

  1. Size the serverProvision at least 4 CPU cores with AVX2, 16 GB RAM plus 16 GB swap (32 GB recommended) and 20 GB of fast disk.
  2. Install DockerInstall Docker 19.03.6 or later and Docker Compose 2.32.2 or later.
  3. Check out the latest releaseClone getsentry/self-hosted and check out the latest release tag.
  4. Choose a profileLeave COMPOSE_PROFILES=feature-complete, or set errors-only in .env to save resources.
  5. Install and startRun ./install.sh, then docker compose up --wait, and put TLS in front of port 9000.

Sentry self-hosted requirements

ResourceMinimumNotes
CPU4 coresOn x86-64, ClickHouse 26.6 and later needs the full x86-64-v3 feature set, including AVX2
Memory16 GB RAM + 16 GB swap32 GB RAM recommended
Disk20 GB freeHigh IOPS recommended; iowait above 10% of CPU time means the disk can't keep up
Docker19.03.6Docker Compose 2.32.2 or later

The repository describes itself as Sentry packaged up for low-volume deployments and proofs of concept. The default stack runs dozens of containers (Sentry, Snuba consumers, Relay, Symbolicator, Kafka, ClickHouse, Postgres, Redis, nginx and more), which is why the memory floor is high. On recent releases, check that your virtual CPU exposes AVX2 before you install.

Install it

Install from the latest tagged release, not master:

VERSION=$(curl -Ls -o /dev/null -w %{url_effective} https://github.com/getsentry/self-hosted/releases/latest)
VERSION=${VERSION##*/}
git clone https://github.com/getsentry/self-hosted.git
cd self-hosted
git checkout ${VERSION}
./install.sh
docker compose up --wait

Sentry listens on port 9000 (SENTRY_BIND in .env). Put a reverse proxy with TLS in front of it before SDKs or people connect from outside. Two other .env settings worth knowing on day one:

  • SENTRY_EVENT_RETENTION_DAYS=90, the default retention; lower it if disk fills.
  • SENTRY_MAIL_HOST, which must be set to a real host name before Sentry can send email, including alert email.

Keep your own changes in .env.custom and start with docker compose --env-file .env --env-file .env.custom up --wait, so upgrades don't overwrite them.

Errors-only vs feature-complete

From 24.8.0, you choose a profile with COMPOSE_PROFILES in .env:

ProfileWhat you get
feature-complete (default)Most SaaS features, including traces, profiles, replays, user feedback, crons and application metrics
errors-onlyIssues, alerts, integrations, dashboards, releases and errors, with a focus on lower resource use

If you only need crash reporting for a few apps, errors-only is the sensible start. Sentry's docs don't publish separate hardware numbers for it.

Licence and what you give up compared with sentry.io

Sentry is Fair Source, licensed under FSL-1.1-Apache-2.0. You may deploy it anywhere for your own use; you may not sell a deployed self-hosted Sentry or use the code to compete with Sentry. Each release's code becomes Apache 2.0 after two years.

Not available self-hosted:

  • Seer and other AI/ML features, which are closed source.
  • Spike protection and spend allocation (there is no billing system to protect).
  • Data storage location choice: your data lives wherever your server is.
  • Full mobile stack trace resolution: iOS symbolication and Android system symbols are limited.
  • Some gaming support: PlayStation needs Sony's permission, and Nintendo Switch is not fully tested.

For iOS teams the symbolication gap matters most: check that the crash reports you care about come out readable before you commit.

Upgrades and the real cost

Self-hosted releases are monthly, CalVer-numbered (for example 25.7.0) and come out around the 15th. Sentry doesn't patch old versions, so staying secure means upgrading. To upgrade, set VERSION to the release you want, check it out and run the installer again:

git fetch
git checkout ${VERSION}
./install.sh
docker compose up --wait

The installer stops all services and runs data migrations, so expect downtime. You must also stop at every hard stop on the way: 9.1.2, 21.5.0, 21.6.3, 23.6.2, 23.11.0, 24.8.0, 25.5.1, 26.5.0 and 26.7.0. Skipping one is the classic failed upgrade on a server left alone for a year. Read the example config files under sentry/ for changes before each upgrade, and take your own backups: the upgrade docs don't do it for you.

So the price of self-hosted Sentry is a 16 to 32 GB server with fast disk, plus a few hours a month of someone's time for upgrades, disk and Kafka or ClickHouse trouble. Compare that with a sentry.io Team plan at $26 a month billed annually (as of November 2026; see Sentry pricing). Self-hosting wins when data must stay on your network or volume is high and steady; it rarely wins for a small team on cost alone.

Questions

Is self-hosted Sentry free?

There is no licence fee. It is released under the Functional Source License, which lets you run it for your own use but not sell it or offer a competing service. You pay for the hardware and the time to run it.

How much RAM does self-hosted Sentry need?

At least 16 GB RAM plus 16 GB swap; Sentry recommends 32 GB RAM. The errors-only profile is designed to use less, but no separate figure is published.

Can I skip versions when upgrading self-hosted Sentry?

Yes, except hard stops. You must upgrade to each hard stop in turn (for example 24.8.0, 25.5.1, 26.5.0 and 26.7.0) before going further.

Does Seer work on self-hosted Sentry?

No. Seer and Sentry's other AI/ML features are closed source and only available on sentry.io.

Sources

  1. Self-Hosted Sentrydevelop.sentry.dev
  2. Releases & Upgradingdevelop.sentry.dev
  3. Self-Hosted Errors-Onlydevelop.sentry.dev
  4. getsentry/self-hostedgithub.com