---
title: "Deploy Bugsink"
description: "Self-hosted Error Tracking. Sentry-SDK compatible"
category: "Analytics"
url: https://railway.com/deploy/bugsink
---

# Deploy Bugsink

Self-hosted Error Tracking. Sentry-SDK compatible

**[Deploy Bugsink on Railway](https://railway.com/template/bugsink)**

- **Creator:** nonzerosum
- **Category:** Analytics
- **Total deploys:** 19

## Template content

### Bugsink https://www.bugsink.com/static/images/bugsink-logo.7a9597e724ff.webp

- **Image:** bugsink/bugsink:2.5.0
- **Public domain:** Yes

### MySQL https://devicons.railway.app/i/mysql.svg

- **Image:** mysql:9
- **Start command:** `docker-entrypoint.sh mysqld --innodb-use-native-aio=0 --disable-log-bin --performance_schema=0`

## Documentation

# Deploy and Host Bugsink on Railway

## What is Bugsink?

Bugsink is an open-source, self-hosted error tracking platform compatible with Sentry SDKs. It helps developers monitor exceptions, inspect stack traces, and debug production issues while maintaining full ownership of their infrastructure and telemetry data.

## About Hosting Bugsink

Hosting Bugsink requires deploying the application server alongside a PostgreSQL database for storing events, issues, users, and project metadata. Since Bugsink supports standard Sentry SDKs, teams can integrate it into existing applications with minimal setup changes.

Railway simplifies deployment by handling infrastructure provisioning, networking, environment variables, persistent storage, and service orchestration. A typical deployment includes a Bugsink web service, a PostgreSQL database, persistent storage volumes, and optional SMTP configuration for notifications. Railway also supports automatic deployments from GitHub and seamless scaling as your monitoring needs grow.

## Common Use Cases

- Self-hosted application error monitoring for privacy-conscious teams
- Replacing hosted Sentry deployments with a lightweight alternative
- Centralized exception tracking across APIs, web apps, and background workers

## Dependencies for Bugsink Hosting

- PostgreSQL database
- Persistent volume storage

### Deployment Dependencies

- [Bugsink Official Website](https://www.bugsink.com)
- [Bugsink GitHub Repository](https://github.com/bugsink/bugsink)
- [Bugsink Docker Image](https://hub.docker.com/r/bugsink/bugsink)
- [Railway Documentation](https://docs.railway.com)
- [PostgreSQL on Railway](https://docs.railway.com/databases/postgresql)

### Implementation Details

Example `Dockerfile`:

```dockerfile
FROM bugsink/bugsink:latest
```

Example environment variables:

```env
DATABASE_URL=postgres://postgres:password@postgres:5432/bugsink
SECRET_KEY=replace-with-secure-random-value
ALLOWED_HOSTS=your-app.up.railway.app
PORT=8000
```

Example startup command:

```bash
python manage.py migrate && gunicorn bugsink.wsgi:application --bind 0.0.0.0:$PORT
```

## Why Deploy Bugsink on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Bugsink on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.

## Similar templates

- [Betterlytics](https://railway.com/deploy/betterlytics) — Betterlytics is a cookieless analytics platform GDPR-compliant.
- [Finance Tracker](https://railway.com/deploy/finance-tracker-1) — Private multi-user household finance ledger with budgets and CSV import.
- [Matomo Analytics + MariaDB](https://railway.com/deploy/matomo-analytics-mariadb) — Privacy-friendly analytics with MariaDB and persistent volumes.

Open this page in a browser: https://railway.com/deploy/bugsink
