# Self-host GlitchTip

> A lightweight, self-hosted error tracking service compatible with the Sentry SDK.

- Page: https://levelrail.com/templates/glitchtip/
- JSON: https://levelrail.com/templates/glitchtip.json
- Category: Monitoring
- Licence: MIT (Permissive license)
- Source: https://github.com/burke-software/GlitchTip
- Upstream docs: https://glitchtip.com/documentation

## Requirements
- Memory: about 512 MiB
- amd64: published, arm64: published
- Needs configuration before start: no
- Pinned image tag: 16-alpine

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| db | postgres | 16-alpine | none | glitchtip_db_data -> /var/lib/postgresql/data |
| glitchtip | glitchtip/glitchtip | 6.0 | 8080 | none |
| redis | redis | 7-alpine | none | glitchtip_redis_data -> /data |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| db | POSTGRES_DB | preset |
| db | POSTGRES_PASSWORD | generated |
| db | POSTGRES_USER | preset |
| glitchtip | DATABASE_URL | generated |
| glitchtip | DEFAULT_FROM_EMAIL | preset |
| glitchtip | GLITCHTIP_DOMAIN | preset |
| glitchtip | REDIS_URL | preset |
| glitchtip | SECRET_KEY | generated |

## Deploy

### CLI

```bash
levelrail-cli templates deploy glitchtip --name my-glitchtip
```

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/glitchtip/deploy
```

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

## Questions

### Can I deploy GlitchTip on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list has an entry with the id glitchtip for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image postgres:16-alpine, glitchtip/glitchtip:6.0, redis:7-alpine is what you deploy there.

Self-host GlitchTip, GlitchTip docker compose file, deploy GlitchTip on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
