# Self-host Alertmanager

> Prometheus Alertmanager: groups, deduplicates and routes alerts to email, Slack, webhooks and on-call tools.

- Page: https://levelrail.com/templates/alertmanager/
- JSON: https://levelrail.com/templates/alertmanager.json
- Category: Monitoring
- Licence: Apache-2.0 (Permissive license)
- Source: https://github.com/prometheus/alertmanager
- Upstream docs: https://prometheus.io/docs/alerting/latest/alertmanager/

## Requirements
- Memory: about 128 MiB
- amd64: published, arm64: tested
- Needs configuration before start: no
- Pinned image tag: v0.27.0

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| alertmanager | prom/alertmanager | v0.27.0 | 9093 | data -> /alertmanager |

## Deploy

### CLI

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

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/alertmanager/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 Alertmanager on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for Alertmanager, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image prom/alertmanager:v0.27.0 is what you deploy there.

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