# Self-host Maintainerr

> Rule-based media library cleanup for Plex and Jellyfin that works with Sonarr, Radarr and Seerr. MIT licensed. On first open, add your media server and arr apps in settings, then build rules.

- Page: https://levelrail.com/templates/maintainerr/
- JSON: https://levelrail.com/templates/maintainerr.json
- Category: Applications
- Licence: MIT (Permissive license)
- Source: https://github.com/Maintainerr/Maintainerr
- Upstream docs: https://docs.maintainerr.info/

## Requirements
- Memory: about 384 MiB
- amd64: published, arm64: published
- Needs configuration before start: no
- Pinned image tag: 3.31.0

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| maintainerr | ghcr.io/maintainerr/maintainerr | 3.31.0 | 6246 | data -> /opt/data |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| maintainerr | TZ | preset |

## Deploy

### CLI

```bash
levelrail-cli templates install maintainerr --name my-maintainerr
```

Add --domain SERVICE=HOST to serve a service on your own domain, for example --domain maintainerr=app.example.com.

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  https://levelrail.example.com/api/v1/service-templates/maintainerr/install \
  -d '{
    "name": "my-maintainerr"
  }'
```

Create a token in the dashboard first. Name, env and domains are the request fields.

## Questions

### Can I deploy Maintainerr 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 Maintainerr, 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 ghcr.io/maintainerr/maintainerr:3.31.0 is what you deploy there.

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