promptfoo on Docker vs Kubernetes vs VMs

Docker, Kubernetes or VMs for promptfoo? The documented self-hosted server keeps data in a SQLite file that replicas cannot share, so the platform choice mainly changes operating effort. Here is how to pick.

On this page

promptfoo on Docker, Kubernetes or VMs: which fits your team

The three self-hosted options differ mostly in how much operating work they put on your team. The self-hosted promptfoo app is an Express server that serves the web UI and API, and it stores data in a local SQLite database that cannot be shared across replicas. It has no horizontal scaling, no built-in authentication or SSO, and no RBAC, and the self-hosting documentation states that it is not recommended for production use. Those limits apply on Docker, Kubernetes and VMs alike, so choose the target by the operating model you can support, then confirm with promptfoo which deployment target it supports for your use case.

Docker or Docker Compose fits a single-host evaluation or a small test team that runs evals and red team scans from one shared machine. The database is a local file on that host, so the decision is whether a single host holding that data is acceptable for your test records. Kubernetes with Helm fits a team that already runs clusters and has established practices for storage, ingress and secrets. The chart does not change the SQLite limit, so do not plan for several pods sharing state, and confirm with promptfoo whether the Helm chart is supported at your scale. A VM fits a team that manages hosts and wants OS-level control over patching, disk encryption, the Node.js runtime and network rules. The promptfoo npm release 0.124.1 requires Node.js 22.22.0 or newer, so confirm the runtime version for the server build you deploy and pin it on the host.

Choose promptfoo Enterprise On-Prem when SSO, role-based access control and team sharing are requirements, because the free self-hosted server does not provide them. The Enterprise tier adds team sharing, teams-based access control, SSO, and custom roles and permissions, and the On-Premise option runs that functionality on your own infrastructure with complete data isolation and a dedicated deployment engineer. The pricing page lists these tiers, but pricing is custom, so ask promptfoo in writing which deployment target it supports for your environment, who operates the system, how upgrades and backups are handled, and what the quote covers. If your auditors will ask who can see and change evaluation data, that requirement usually settles the question before the Docker, Kubernetes and VM comparison starts.

How promptfoo on Kubernetes compares with Docker and VMs on the factors that matter

This table compares running the self-hosted promptfoo app on Docker or Compose, Kubernetes with Helm and virtual machines, across the factors that set operating effort. The SQLite storage and no-horizontal-scaling limits apply to all three, and the free self-hosted server is not recommended for production. Packaging changes the operating work, while the database limit stays the same, so use the sizing and confirmation rows to frame your questions for promptfoo.

FactorDocker or ComposeKubernetes with HelmVMs
PackagingRuns the Express server in a container, with Compose for a single-host stack. Confirm the image source and tag.Installed from the Helm chart onto a cluster you operate. Confirm the chart version and values.Your team installs and runs the process on the host. The npm release requires Node.js 22.22.0 or newer.
Known limitsSame limits: SQLite, no horizontal scaling, no RBAC or built-in SSO. Not recommended for production.Same limits: SQLite, no horizontal scaling, no RBAC or built-in SSO. Not recommended for production.Same limits: SQLite, no horizontal scaling, no RBAC or built-in SSO. Not recommended for production.
ScalingOne instance on one host. Horizontal scaling is not available in the self-hosted app.Do not raise replicas: the SQLite store cannot be shared across them.One process on one VM. Capacity changes mean resizing or replacing the VM.
AvailabilityRestart policies can recover a crashed container. A host failure stops the service until you restore it elsewhere.Pod rescheduling can restart the app, but high availability needs more than one replica, which the app does not support.Recovery depends on VM snapshots or restores, which your team runs and tests.
State and data locationLocal SQLite database on the container's storage. Mount a volume to keep it, and confirm the path.Local SQLite database on the pod's volume. Confirm the storage class, snapshot support and backup method.Local SQLite database on the VM disk. Confirm the file path and how the disk is backed up.
Sizing inputsConfirm CPU, memory and disk needs with promptfoo for your eval volume and red team probe count.Confirm CPU, memory, storage and replica settings with promptfoo for your eval volume and probe count.Confirm CPU, memory and disk needs with promptfoo, then size the VM to that answer.
LicensingMIT-licensed. Community is free. Enterprise and On-Prem add SSO, RBAC and support at custom pricing.Same MIT license and paid tiers as the other two. Enterprise pricing is custom, so ask for a quote.Same MIT license. Confirm whether SSO and access control need Enterprise or On-Prem for your VM setup.
What the buyer must confirmImage source, the SQLite volume path, and whether a single host meets your recovery target.Chart version, storage class, snapshot and backup approach, and who owns cluster upgrades.Install steps, Node.js version control, VM backup and patch process, and who restores after a failure.

What runs in each option: the Express server, the SQLite file and the CLI

Each option runs the same pieces in different places. The Express server and its SQLite file are what the platform choice changes, while the CLI runs on CI runners and calls model providers directly. Keeping the two separate means a release gate does not depend on the server being highly available. The cards below cover each piece and what to check.

Express server for the UI and API

The self-hosted promptfoo app is one Express server that serves both the web UI and the API. Docker, Compose, Helm and VM installs all run this same process, so the platform decision sets where the server runs and who operates it. Check the port it listens on, whether a reverse proxy or ingress terminates TLS in front of it, and how users reach it. The self-hosted server has no built-in authentication or SSO, so anything reachable from your network needs controls at the network layer.

Self-hosting docs

SQLite file and its volume

Self-hosted promptfoo keeps its data in a local SQLite database, so that file is the state you must protect. In Docker and Compose it sits on a volume, on Kubernetes it sits on whatever storage the release uses, and on a VM it sits on a disk you back up. The database cannot be shared across replicas, so two copies behind one load balancer will not see the same data. On Kubernetes, confirm the storage survives pod restarts, and test restoring the file from backup before you rely on it.

Docker image and Compose file

The Docker route packages the server in an image, and Docker Compose defines the container, port and volume mounts in one file. It carries the lowest operating load for a single host. Check that the Compose file mounts the volume holding the SQLite database, that the image tag points to a specific version, and that a container restart keeps your data. One host is one failure domain: if it goes down, the web UI and API go down with it.

Helm chart on Kubernetes

The Helm chart deploys the same server into a Kubernetes cluster, which adds restarts, ingress and scheduling. It does not change the data model: a replica cannot share its SQLite file with another replica. Extra replicas do not make the data highly available, so they add cluster work without fixing the single-file limit. Before you choose this route, confirm who upgrades the chart, how storage is provisioned, and whether your platform team already runs the cluster.

VM install and Node.js floor

On a VM, you install the promptfoo npm package on a host you manage, so you own the runtime, the service manager, the SQLite backups and the upgrades. The npm install requires Node.js 22.22.0 or newer, so set that version in your provisioning before the first install. Confirm that Node.js patching will not break the install, and write down how you roll back a failed upgrade. Your team will need to write the backup, restore and rollback runbook itself.

promptfoo on npm

CLI on CI runners

The CLI is a separate piece. It runs on CI runners, reads declarative configs and calls LLM providers directly, so an evaluation or red team run does not need the web server or its SQLite file. The gate does not depend on the server being highly available, so an outage of the self-hosted app should not block a merge. Check that each runner holds the provider keys it needs, can reach the model endpoints, and runs a Node.js version that matches your npm install.

promptfoo introduction

Which connections stay inside your infrastructure?

The diagram starts with browser users, who reach the Express server on whichever runtime you choose: Docker, Kubernetes or a virtual machine. The server reads and writes one SQLite file on a single volume, so that data store serves only one running server. CI runners run the promptfoo CLI and call LLM providers directly, which keeps those calls off the server path. The boundary labeled client infrastructure marks what you operate. The Enterprise On-Prem path sits in its own group because its architecture is one to confirm with promptfoo before you plan around it.

Browser traffic, one SQLite volume and direct CI calls to LLM providers.

Why extra Kubernetes replicas do not add high availability for the self-hosted server

Running several pods of the self-hosted promptfoo server against one database does not give you high availability. The self-hosted app keeps its data in a local SQLite database that cannot be shared across replicas, and the server has no horizontal scaling. Each replica would hold its own view of evals, results and settings, so a user could see different data depending on which pod answered the request, and writes from one pod would not reach the others. Kubernetes can schedule the extra pods, but the scheduler cannot make the database safe to share. Treat the deployment as a single-instance workload until promptfoo confirms otherwise in writing. Before you size a cluster, check whether any replica setting in the chart or Compose file you plan to use changes this behavior, and read the self-hosting documentation for the current limits.

A single instance still has three controls that matter. First, automatic restart: run the server under a Docker restart policy, a Kubernetes Deployment with a liveness probe, or a systemd unit on a VM, so a crashed process returns without someone intervening. Restart brings the process back, and the service is unavailable while it starts. Second, a persistent volume for the directory that holds the SQLite file, so the database survives a container or pod being replaced. Third, a backup and restore of that file that you have actually run. Take the copy with the .backup command in the sqlite3 shell while the server is stopped or quiet, store it outside the host's failure domain, and restore it into a scratch environment to confirm the data opens and the UI loads. Measure how long that restore takes in your own environment and write the number into the runbook.

A production path needs one of two things. The first is promptfoo Enterprise On-Prem, which promptfoo describes as Enterprise functionality on your own infrastructure with complete data isolation and a dedicated deployment engineer. Enterprise also adds team sharing, role-based access control and SSO, which the self-hosted server lacks, so identity integration is a reason to choose it on its own. The second is an architecture that promptfoo confirms in writing, and that confirmation should name the database, the number of instances, the failover method and who operates each part. Before you commit, ask promptfoo whether the On-Prem edition changes the storage model, what recovery commitments it makes and in what written form, how upgrades are applied without losing the database, and what support terms apply. Enterprise pricing is custom, as listed on the promptfoo pricing page, so request a quote against the written scope.

Upgrades, backups and monitoring for promptfoo on Kubernetes, Docker and VMs

This table compares how upgrades, rollbacks, SQLite backups, monitoring and host patching differ for self-hosted promptfoo on Docker, Kubernetes and virtual machines. Read each row as the work your team owns on that option. The self-hosted app stores data in a local SQLite database that cannot be shared across replicas, so every option runs as a single instance, and the backup and rollback rows carry the most risk.

AreaDockerKubernetesVMs
Upgrade pathPin an image tag, test it against a copy of the data, then restart the container with that tag.Change the image version in a Helm values file, roll it through staging, then promote it to production.Pin the npm release, for example 0.124.1 (published October 8, 2026), and test it on a staging VM with Node.js 22.22.0 or newer.
RollbackRedeploy the previous image tag. Confirm with promptfoo that the database written by the newer version opens on the older one.Roll back the Helm release, but the SQLite file on the volume stays at its newer state unless you restore it.Reinstall the previous npm version and restore the data directory from a snapshot taken before the upgrade.
Backup and restore of the SQLite fileCopy the volume holding the database. Confirm the backup method for a live SQLite file with promptfoo before relying on it.Snapshot the persistent volume of the single pod. Confirm the backup method for a live SQLite file with promptfoo before relying on it.Use a disk snapshot or a copy taken with the service stopped. Confirm the backup method for a live SQLite file with promptfoo before relying on it.
High availabilityOne container with a restart policy. Recovery after a host failure is a manual move to another host.Pods can be rescheduled, but a second replica cannot share the SQLite file, so expect a short outage on each move.One VM. Failover means building or restoring a second VM from the same snapshot and data.
Monitoring and loggingCollect container logs and host metrics with your existing agent. Confirm which health endpoints and logs the image exposes.Use the cluster logging and metrics stack for pod logs and probe results. Confirm the health checks suit a single-instance app.Send service logs to your log pipeline and alert on process exit. Confirm the log path the service writes to.
Patching the host or clusterPatch the Docker host and rebuild the image on each promptfoo release. Host reboots stop the container.Drain nodes during cluster upgrades. Each reschedule of the single pod causes a short interruption.Patch the OS and Node.js runtime in place during a maintenance window, with a snapshot taken first.
Skills the team needsContainer basics, volume management, reverse proxy and TLS setup, and host patching.Helm, Kubernetes storage and ingress, cluster upgrade practice, and on-call for the cluster itself.Linux administration, Node.js runtime management, service supervision and OS patching.

Which team should run promptfoo on each platform

A small AppSec or ML team that runs evaluations from one shared host is the team the self-hosted promptfoo server suits best, provided everyone who can reach the host is trusted with its results. The self-hosted app is an Express server that serves the web UI and API, and it can be deployed with Docker or Docker Compose on a single machine. Operating time stays low for this setup, mostly covering backups, patching and version pinning, because there is little else to run.

  • Single container host: Docker or Docker Compose on one machine keeps the number of moving parts small, which limits the upkeep a small team has to schedule.
  • One database file to protect: The local SQLite database holds the server state, so backups, file permissions and restore tests are the main recurring tasks.
  • No shared replicas: SQLite cannot be shared across replicas, so adding a second server for load or failover is not a supported path with the free build.
  • Node.js for CLI runs: Evaluation runs that use the CLI need Node.js 22.22.0 or newer, so the host and any CI runners must keep that version current.

Before you commit, confirm with promptfoo whether its self-hosting guide treats a single-instance server as acceptable for your use, since it is not recommended for production.

How to plan a self-hosted promptfoo deployment, step by step

This sequence takes a team from an unclear idea of what promptfoo is for to a deployment with a tested backup, a pinned version and a set of compliance evidence. Each step produces a written decision or a test result that the next step depends on. Most of the work falls to the platform owner and the security lead, with engineers joining for the evaluation and CI steps.

  1. Define the use case and scope

    The team decides which use the deployment serves: local evaluations by individual engineers, a CI gate that blocks releases, or a shared team UI where several people review results. Engineering leads write this down with the security owner, listing who signs in, which model providers and data sets are in scope, and whether results must be shared outside the team. The step is done when the scope document names one primary use, any secondary use, and the owner has signed it. Every later choice depends on this document, so keep it short and specific.

  2. Choose Community or Enterprise On-Prem

    Compare the free Community edition with Enterprise On-Prem against the access requirements from the scope document. Community includes all LLM evaluation features, all model providers and integrations, and red teaming with 10k probes per month, with community support. Enterprise adds team sharing, teams-based access control and SSO, custom roles and permissions, and runs on your infrastructure with a dedicated deployment engineer. The self-hosted open-source server has no RBAC, built-in authentication or SSO, so a shared UI with those requirements points to Enterprise. Pricing for Enterprise is custom, so request a written quote. The step is done when the decision record names the edition and the reason.

  3. Pick the runtime for your team

    Choose among Docker, Docker Compose, Kubernetes with Helm, or a virtual machine, based on the operating model and the logging, patching and network controls your platform team already runs. The self-hosted app is an Express server that serves the web UI and API, and it stores data in a local SQLite database that cannot be shared across replicas. Plan for a single writer: one instance per database, persistent storage for the database file, and no horizontal scaling. A Kubernetes cluster helps teams that already operate one, but it does not lift the single-writer limit. Confirm the database file location in the vendor documentation. The step is done when a restart test passes with data intact.

  4. Set up and test SQLite backup and restore

    The platform owner schedules copies of the SQLite database, stores them outside the host running promptfoo, and protects them with the same encryption and access rules used for other evaluation data. Because the database is a single file, take each copy while the application is stopped or with a snapshot method that yields a consistent file, and confirm which method your SQLite version supports. Then restore the most recent copy to a separate host and check that known evaluation runs, results and configuration appear. Write the restore steps into the runbook. The step is done when a restore test passes on a clean host.

  5. Pin the version and rehearse upgrades

    Pin the promptfoo version in every deployment, whether the image tag, the Helm chart version or the npm package version, so nothing changes on a restart. Check runtime requirements before each upgrade: promptfoo 0.124.1, published on October 8, 2026, requires Node.js 22.22.0 or newer, so confirm the Node version on any virtual machine or base image. Apply each new release first to a staging copy restored from a recent backup, run the same evaluations and compare results. Keep the previous version and image available for rollback. The step is done when one staging upgrade and one rollback both finish with the test evaluations passing and the change is logged.

  6. Document controls and evidence for compliance

    Security and compliance leads list the questions their assessors are likely to ask, and the platform owner shows where each answer comes from. Typical items include who can sign in, how access is granted and removed, where logs and backups are kept, how versions are pinned and upgrades tested, and how red team results map to the OWASP LLM Top 10 and NIST AI Risk Management Framework that the promptfoo documentation references. If you run Community, access controls sit outside promptfoo and must be documented as such. DeployOpen can prepare systems and evidence, but independent auditors issue any report or certification. The step is done when each control links to a stored artifact, such as a restore record or an upgrade log.

What running promptfoo yourself costs and requires

Is the free self-hosted promptfoo server ready for production use?

No. The promptfoo self-hosting documentation says the self-hosted app is not recommended for production use. It stores data in a local SQLite database that cannot be shared across replicas, and it has no RBAC, no horizontal scaling, and no built-in authentication or SSO. A single-user pilot can run on a VM or container, but any shared or customer-facing use needs those controls added by you or bought through Enterprise. Ask your security team to review each gap before you set a production date, and confirm the current state in the self-hosting documentation because the product changes between releases.

What does running promptfoo yourself actually cost?

The Community edition has no license fee. It is free, includes all LLM evaluation features and red teaming with 10k probes per month, and comes with community support. Enterprise and On-Prem are custom priced, so a written quote is the only way to get those numbers. Your own infrastructure and staff time are paid regardless of edition. Recurring costs are compute, storage, backups, any shared database you add, monitoring, and the engineer hours for upgrades and on-call. One-time costs are the initial setup, identity and CI integration, and the security review of the deployed system. Costs rise with the number of users, the number of environments, probe volume beyond the Community allowance, and the number of systems that need SSO.

How long does a production promptfoo setup take, and what drives it?

Ask for the timeline in the written scope, because the duration depends on the work itself. The main drivers are the target platform (Docker, Docker Compose, Kubernetes with Helm, or a virtual machine), whether you add a shared database to get past the SQLite limit, how many identity and network integrations you need, and whether CI pipelines must be wired in. Backup and restore testing and a security review of the deployed setup add time. DeployOpen's engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. Ask for phases with an acceptance check at each, so you can see which step carries the most risk and test your assumptions in a pilot before committing to a production date.

What does my team need to provide for a promptfoo deployment?

Your team owns the environment, the identities and the sign-off, even when a partner builds the setup. You need cloud or data center access, a host or cluster to run the app, and a named owner for the database and backups. Whoever runs your identity provider must supply the SSO settings if you plan to use Enterprise features. Someone must issue service accounts for CI runners and hold the LLM provider API keys under your secrets policy. Your security reviewer needs a data flow diagram, the logging destinations and the access list. If you install the CLI from npm, the 0.124.1 release requires Node.js 22.22.0 or newer. Name one reviewer who can approve changes throughout the engagement.

Can an internal platform team run promptfoo on Docker or Kubernetes without outside help?

Yes, if the team already has container and Kubernetes experience, but the hard part is the controls, not the install. The documentation covers Docker, Docker Compose and Kubernetes with Helm, so the deployment step is familiar. The gaps in the free server are a shared data store for replicas, access control, and SSO, and your team must design those, then keep them working through every upgrade. A team that already runs its own identity gateway, backup jobs and CI pipelines has the skills it needs. A team without them should either hire for the gap or use a fixed-scope engagement that ends with a handover and documented runbooks. Assess that skills gap honestly before you commit the work to an internal team.

When should a team move from self-hosted promptfoo to Enterprise On-Prem?

Move when you need the Enterprise features and must keep data inside your own infrastructure. The Enterprise tier adds team sharing, teams-based access control and SSO, custom roles and permissions, continuous monitoring, a centralized guardrail dashboard, remediation recommendations and priority support with SLAs. On-Prem runs that functionality on your infrastructure with complete data isolation and a dedicated deployment engineer. Pricing is custom, so get a quote and read the SLA terms in writing. Stay on Community if a few engineers run evaluations in CI and the 10k monthly probe allowance covers your testing. If data residency does not require your own infrastructure, compare the vendor-run Enterprise option as well.

What should I ask for in a written quote for this work?

Ask for a written scope that names every system, integration and deliverable, plus the exclusions. Request the target platform (Docker, Compose, Kubernetes with Helm or a VM) and the reason for choosing it, the database and backup design including how restores are tested, and the SSO, logging and CI integrations listed separately. Also ask for the hardening and security test steps with the retest, the handover format including runbooks and upgrade steps, the support model with a note on whether retainers are priced separately, and milestones with acceptance checks. DeployOpen's work is fixed-scope, scope and timelines are agreed in writing before work starts, and a quote follows from that written scope, since DeployOpen does not publish a price list. Confirm that the quote states what is excluded, such as vendor licenses and your own cloud costs.

How DeployOpen scopes and supports a promptfoo deployment

DeployOpen plans, implements, hardens, backs up, upgrades and documents self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks. For promptfoo, the choice between Docker, Kubernetes and virtual machines changes how data, replicas and upgrades are handled, so we scope that decision in writing before any build starts.

How we scope

  • The written scope records which runtime you chose for promptfoo: Docker, Docker Compose, Kubernetes with Helm or virtual machines.
  • Scope covers the data store decision, since self-hosted promptfoo uses a local SQLite database that cannot be shared across replicas.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts; ongoing support is available as a retainer.

How we build

  • We deploy the chosen runtime in your environment and configure the promptfoo server, its data volume and network exposure.
  • Where SSO is required, we integrate the identity provider, since self-hosted promptfoo has no built-in authentication or SSO.
  • We test the deployed setup, including the promptfoo red teaming configs and access paths, before handover.

How we hand over

  • Handover includes the architecture record, a runbook for the chosen runtime and the configuration files for your own version control.
  • Backup and restore steps cover each runtime's storage, including the SQLite data file, and a restore check.
  • Upgrade notes list the steps for moving the promptfoo version, with a rollback path agreed in the written scope.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, quoted from the written scope.
  • Upgrade planning tracks promptfoo releases, for example 0.124.1, which requires Node.js 22.22.0 or newer on npm installs.
  • Compliance evidence is prepared for your assessor, and independent auditors issue any audit report.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.