# Self-host Kestra

> An event driven workflow orchestrator where flows are defined in YAML.

- Page: https://levelrail.com/templates/kestra/
- JSON: https://levelrail.com/templates/kestra.json
- Category: Automation
- Licence: Apache-2.0 (Permissive license)
- Source: https://github.com/kestra-io/kestra
- Upstream docs: https://kestra.io/docs

## Requirements
- Memory: about 1.5 GiB
- amd64: unknown, arm64: unknown
- Needs configuration before start: no
- Pinned image tag: 16-alpine

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| db | postgres | 16-alpine | none | db_data -> /var/lib/postgresql/data |
| kestra | kestra/kestra | v2.0.10 | 8080 | kestra_data -> /app/storage |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| db | POSTGRES_DB | preset |
| db | POSTGRES_PASSWORD | generated |
| db | POSTGRES_USER | preset |
| kestra | KESTRA_CONFIGURATION | generated |

## Deploy

### CLI

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

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/kestra/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 Kestra 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 kestra for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image postgres:16-alpine, kestra/kestra:v2.0.10 is what you deploy there.

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