Deployment
Ready-to-use deployment files live in the repository’s
deploy/ directory. This page helps you
pick one and explains the settings every deployment needs.
Choose a topology
| Topology | Processes | Database | Blob store | Use when |
|---|---|---|---|---|
| Single node | One tappet serve | SQLite | Local directory | Most installs. Simple, fast, one volume to back up. |
| Single node on Postgres | One tappet serve | Postgres | Local directory or S3 | You already operate Postgres and want its backup tooling. |
| HA | N x tappet serve --role api, M x tappet worker | Postgres | S3, or a volume shared by all processes | Zero-downtime upgrades, more throughput than one machine, or tolerance to node failure. |
A single node handles a lot: the webhook benchmark target is 5,000 concurrent requests on 4 vCPUs. Move to HA for availability first, throughput second.
Required settings
| Variable | Why |
|---|---|
TAPPET_ENV=production | Refuses to start without a real encryption key, and enables production defaults. |
TAPPET_ENCRYPTION_KEY | Key-encryption key for credentials (tappet keys generate or openssl rand -base64 32). Back it up separately. |
TAPPET_PUBLIC_URL | The external https:// URL. Webhook URLs, resume URLs, OAuth2 and OIDC redirect URIs are built from it. |
TAPPET_HOST=0.0.0.0 | In containers. The default is 127.0.0.1. |
TAPPET_DATABASE_URL | For Postgres: postgres://user:pass@host:5432/tappet. Defaults to SQLite in the data directory. |
TAPPET_DATA | Data directory (SQLite file, blobs, dev key). Defaults to ~/.tappet or /var/lib/tappet. |
Recommended: TAPPET_EGRESS_POLICY=strict, TAPPET_LOG_FORMAT=json. The full list is in
Configuration.
Deployment files
| Directory | Contents |
|---|---|
deploy/docker-compose/single-node | One container with a volume. Optional Caddy for automatic HTTPS. |
deploy/docker-compose/ha | Postgres, a migration job, an API service, two workers and Caddy. |
deploy/helm/tappet | Helm chart. values-single-node.yaml and values-ha.yaml presets: Deployments for API and workers, Service, Ingress, PVC, Secret for the encryption key, HPA for workers, PodDisruptionBudgets, optional NetworkPolicy and ServiceMonitor. |
deploy/kubernetes | Plain manifests (with Kustomize) for single node and HA. |
deploy/systemd | Hardened systemd units for tappet serve and tappet worker. |
deploy/reverse-proxy | Caddy, nginx and Traefik configurations. |
deploy/fly | Fly.io app with a volume. |
deploy/render | Render Blueprint with a persistent disk. |
Docker Compose, single node
cd deploy/docker-compose/single-node
cp .env.example .env
# edit .env: TAPPET_PUBLIC_URL, TAPPET_DOMAIN, and paste a key from `openssl rand -base64 32`
docker compose up -d
Docker Compose, HA
cd deploy/docker-compose/ha
cp .env.example .env
# edit .env: domain, encryption key, Postgres password
docker compose up -d
docker compose up -d --scale worker=4 # more workers
Kubernetes with Helm
kubectl create namespace tappet
kubectl -n tappet create secret generic tappet-secrets \
--from-literal=TAPPET_ENCRYPTION_KEY="$(openssl rand -base64 32)"
helm install tappet ./deploy/helm/tappet -n tappet \
-f deploy/helm/tappet/values-single-node.yaml \
--set publicUrl=https://automation.example.com \
--set ingress.hosts[0].host=automation.example.com \
--set secrets.create=false \
--set secrets.existingSecret=tappet-secrets
For HA, use values-ha.yaml and provide the Postgres URL and S3 settings in the secret; see the
chart’s README for every value.
systemd
sudo install -m 0755 tappet /usr/local/bin/tappet
sudo install -m 0644 deploy/systemd/tappet.service /etc/systemd/system/
sudo install -d -m 0750 /etc/tappet
sudo install -m 0640 deploy/systemd/tappet.env.example /etc/tappet/tappet.env
sudoedit /etc/tappet/tappet.env
sudo systemctl daemon-reload
sudo systemctl enable --now tappet
The unit runs Tappet as a dynamic unprivileged user with a read-only file system view, no new
privileges, a restricted set of system calls and address families, and only
/var/lib/tappet writable.
Reverse proxy
Run Tappet behind a reverse proxy that terminates TLS. Whatever proxy you use, configure:
| Concern | Setting |
|---|---|
| Request body size | At least TAPPET_WEBHOOK_BODY_MAX (16 MB by default) for /webhook/, /webhook-test/ and /webhook-waiting/. The API needs less. |
| Streaming responses | Disable response buffering for /api/v1/executions/*/stream (Server-Sent Events) and /mcp. |
| Long requests | Read timeouts of at least TAPPET_SYNC_WEBHOOK_TIMEOUT (300 s by default) for webhooks that respond after the workflow finishes, and longer (or none) for SSE. |
| Forwarded headers | Pass X-Forwarded-For and X-Forwarded-Proto, and Host unchanged. |
| Metrics | Do not expose /metrics publicly. |
Examples in deploy/reverse-proxy/:
- Caddy:
flush_interval -1disables buffering for the stream endpoints;request_body max_sizesets the body limit. - nginx:
client_max_body_size 16m, andproxy_buffering offplusproxy_read_timeout 1hon the stream locations. - Traefik: a
bufferingmiddleware withmaxRequestBodyBytes, and the default unbuffered streaming for SSE (Traefik flushes event streams immediately).
Platform notes
- Fly.io: one machine with a volume for SQLite. Fly volumes are tied to one machine, so this is a
single-node deployment; for HA on Fly use Fly Postgres or an external Postgres and S3-compatible
storage, with separate process groups for
apiandworker. - Render: a web service with a persistent disk. Services with disks cannot scale horizontally, so use Render Postgres and a background worker service for HA.
- Raspberry Pi and small ARM boards: use the
aarch64static binary and the systemd unit. SQLite on an SSD is strongly preferred over an SD card.