# Self-host Diun

> Watches your running containers and notifies you the moment a new image tag is published.

- Page: https://levelrail.com/templates/diun/
- JSON: https://levelrail.com/templates/diun.json
- Category: Monitoring
- Licence: MIT (Permissive license)
- Source: https://github.com/crazy-max/diun
- Upstream docs: https://crazymax.dev/diun/

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

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| diun | crazymax/diun | 4.29.0 | none | diun_data -> /data |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| diun | DIUN_PROVIDERS_DOCKER | preset |
| diun | DIUN_PROVIDERS_DOCKER_WATCHBYDEFAULT | preset |
| diun | DIUN_WATCH_SCHEDULE | preset |
| diun | DIUN_WATCH_WORKERS | preset |
| diun | LOG_LEVEL | preset |
| diun | TZ | preset |

## Deploy

### CLI

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

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/diun/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 Diun 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 Diun, 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 crazymax/diun:4.29.0 is what you deploy there.

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