System requirements
Before you begin, make sure your host meets the minimum requirements:| Resource | Minimum |
|---|---|
| CPU | 4 cores |
| RAM | 16 GB |
| Disk | 20 GB |
Prerequisites
You need the following software installed on your host:- Docker 19.03 or later
- Docker Compose 1.28 or later
- Git
Installation steps
Clone the self-hosted repository
Clone the getsentry/self-hosted repository. This is a separate repo from the main application code and contains the Docker Compose configuration for running Sentry.
Run the install script
Run the install script. This pulls the required Docker images, runs database migrations, and creates the initial configuration files.The script will prompt you to create an initial admin user during setup. If you skip this step, you can create one manually later.
The install script can take several minutes to complete on first run, as it needs to download and initialize all service containers.
Create an admin user
If you didn’t create an admin user during installation, run this command:Environment variables
After installation, a.env file is created in the self-hosted directory. This file controls key settings for your Sentry instance. The most important variables are:
Port mapping
By default, the following ports are exposed on your host:| Port | Service |
|---|---|
| 9000 | Sentry web interface |
docker-compose.yml file in the self-hosted directory.
Next steps
- Configure your instance — set up email, file storage, and external services
- Set up backups — protect your data
- Monitor your instance — keep an eye on service health