Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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

TopologyProcessesDatabaseBlob storeUse when
Single nodeOne tappet serveSQLiteLocal directoryMost installs. Simple, fast, one volume to back up.
Single node on PostgresOne tappet servePostgresLocal directory or S3You already operate Postgres and want its backup tooling.
HAN x tappet serve --role api, M x tappet workerPostgresS3, or a volume shared by all processesZero-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

VariableWhy
TAPPET_ENV=productionRefuses to start without a real encryption key, and enables production defaults.
TAPPET_ENCRYPTION_KEYKey-encryption key for credentials (tappet keys generate or openssl rand -base64 32). Back it up separately.
TAPPET_PUBLIC_URLThe external https:// URL. Webhook URLs, resume URLs, OAuth2 and OIDC redirect URIs are built from it.
TAPPET_HOST=0.0.0.0In containers. The default is 127.0.0.1.
TAPPET_DATABASE_URLFor Postgres: postgres://user:pass@host:5432/tappet. Defaults to SQLite in the data directory.
TAPPET_DATAData 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

DirectoryContents
deploy/docker-compose/single-nodeOne container with a volume. Optional Caddy for automatic HTTPS.
deploy/docker-compose/haPostgres, a migration job, an API service, two workers and Caddy.
deploy/helm/tappetHelm 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/kubernetesPlain manifests (with Kustomize) for single node and HA.
deploy/systemdHardened systemd units for tappet serve and tappet worker.
deploy/reverse-proxyCaddy, nginx and Traefik configurations.
deploy/flyFly.io app with a volume.
deploy/renderRender 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:

ConcernSetting
Request body sizeAt least TAPPET_WEBHOOK_BODY_MAX (16 MB by default) for /webhook/, /webhook-test/ and /webhook-waiting/. The API needs less.
Streaming responsesDisable response buffering for /api/v1/executions/*/stream (Server-Sent Events) and /mcp.
Long requestsRead 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 headersPass X-Forwarded-For and X-Forwarded-Proto, and Host unchanged.
MetricsDo not expose /metrics publicly.

Examples in deploy/reverse-proxy/:

  • Caddy: flush_interval -1 disables buffering for the stream endpoints; request_body max_size sets the body limit.
  • nginx: client_max_body_size 16m, and proxy_buffering off plus proxy_read_timeout 1h on the stream locations.
  • Traefik: a buffering middleware with maxRequestBodyBytes, 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 api and worker.
  • 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 aarch64 static binary and the systemd unit. SQLite on an SSD is strongly preferred over an SD card.