# Self-host Inngest

> A durable workflow engine for background jobs, queues, cron and event-driven functions, backed by Postgres and Redis.

- Page: https://levelrail.com/templates/inngest/
- JSON: https://levelrail.com/templates/inngest.json
- Category: Developer Tools
- Licence: LicenseRef-SSPL-1.0-DOSP (Source available)
- Source: https://github.com/inngest/inngest
- Upstream docs: https://www.inngest.com/docs/self-hosting

## 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 | pgdata -> /var/lib/postgresql/data |
| inngest | inngest/inngest | v1.27.0 | 8288 | none |
| redis | redis | 7-alpine | none | redis -> /data |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| db | POSTGRES_DB | preset |
| db | POSTGRES_PASSWORD | generated |
| db | POSTGRES_USER | preset |
| inngest | INNGEST_EVENT_KEY | generated |
| inngest | INNGEST_POSTGRES_URI | generated |
| inngest | INNGEST_REDIS_URI | preset |
| inngest | INNGEST_SIGNING_KEY | generated |

## Deploy

### CLI

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

Add --domain SERVICE=HOST to serve a service on your own domain, for example --domain db=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/inngest/install \
  -d '{
    "name": "my-inngest"
  }'
```

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

## Questions

### Can I deploy Inngest 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 inngest for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image postgres:16-alpine, inngest/inngest:v1.27.0, redis:7-alpine is what you deploy there.

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