🐛 Setup Sentry — Self-Hosted Error Tracking & Performance Monitoring
Deploy Sentry on Ubuntu with Docker — the industry-standard platform for capturing application errors and performance data with full stack traces and context, on port 9002.
📦 Resources & Setup Scripts
Grab the automated bash script from GitHub to follow along with the video.
Quick Install:
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/dev/sentry/sentry-ubuntu.sh
chmod +x sentry-ubuntu.sh
sudo bash sentry-ubuntu.sh
Tutorial Steps
1 Download the Script
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/dev/sentry/sentry-ubuntu.sh
2 Make it Executable
chmod +x sentry-ubuntu.sh
3 Run the Installer
The script installs Docker if needed, clones the official getsentry/self-hosted repository, and runs its install.sh — which pulls and configures the full 40+ container stack and binds Sentry to port 9002. This takes a while and needs at least 16 GB of RAM.
sudo bash sentry-ubuntu.sh
4 Create Your Admin User
Sentry doesn't ship a default login — you create the first admin account yourself with the createuser command, then open http://your-server:9002 and sign in:
docker compose run --rm web createuser # then open http://:9002
Ports Used
| Port | Purpose |
|---|---|
| 9002 | Web UI (host) — no default login; create the first admin with createuser |
| 40+ containers | Official self-hosted stack: web, workers, Kafka, ClickHouse, PostgreSQL, Redis |
| 16 GB RAM | Minimum — the installer warns below ~15 GB |