Which Directus deployment model fits your team: Docker, Kubernetes or VMs
Docker is the self-hosting path that the Directus project documents, and Kubernetes and virtual machines are host choices for that same application. The directus/directus README describes self-hosting with Docker alongside Directus Cloud, so a Docker deployment is the model to check first against your own standards. Choose a Kubernetes cluster if your platform team already runs clusters with established admission policies, secret handling, monitoring and rolling deploys, and can own the Directus container image, its configuration and its upgrade rollout. Choose a virtual machine with Docker on it if your estate is mostly VMs managed by configuration tooling and your team has strong Linux administration but no cluster. The decision turns on who operates the host, how it is patched and how it scales, not on which Directus you receive.
Availability depends less on the Directus host than on what sits behind it. Directus connects to an existing SQL database selected through the DB_CLIENT setting, and the database configuration documentation lists PostgreSQL, MySQL, MariaDB, Oracle Database, Microsoft SQL Server, SQLite and CockroachDB. Every model leaves that database, its replication and failover, and the file storage used for uploaded assets to your team. Adding a second container or a second VM does not remove a single point of failure if the database or the storage behind it is a single instance. Before you choose a host model, confirm with your database administrator which engine you will run, how it fails over, where uploads are stored, and whether every Directus instance can reach the same storage. Ask the vendor to confirm in writing which multi-instance configuration it supports before you size the cluster or the VM pool.
Use three questions to decide. First, does your platform team already operate Kubernetes in production? If so, the cluster is the natural host, and the added cost is the cluster operations your team already pays for. Second, do you have a VM estate with configuration management and no cluster? If so, a Docker host on a VM keeps the footprint small and the patch cycle familiar. Third, how long can the content API be unavailable? A tight recovery window makes the database replica, the storage replication and a tested restore more important than the host, and no host model removes that work. Illustrative example: a two-administrator team running one VM against an externally managed PostgreSQL service would still need a rehearsed restore of that database, whichever host model it chose.
How Docker, Kubernetes and VMs compare on the factors that drive effort
This table compares Directus on Docker, Kubernetes and virtual machines across the factors that set operating effort, from who owns the host to the cost of switching models later. Read each row as a question to answer for your own team. Directus keeps data in your existing SQL database, so the hosting choice mostly changes who patches, scales and restores the runtime, and Kubernetes and VM specifics should be confirmed with Directus install guidance.
| Factor | Docker host | Kubernetes cluster | Virtual machines |
|---|---|---|---|
| Documentation basis | Directus documents self-hosting with Docker and the DB_CLIENT database setting. | Confirm the Kubernetes manifest or chart approach with Directus install guidance before sizing. | Confirm the supported VM install path and host requirements with Directus install guidance. |
| Who owns the host | Your team owns the OS, Docker engine, patching and the container runtime. | Your platform team owns the cluster. Your team owns the Directus workload and its configuration. | Your team owns the operating system, runtime, patching and every service on each VM. |
| Availability approach | One host unless you add a load balancer and a second instance. Confirm multi-instance setup with Directus install guidance. | The cluster reschedules and replicates pods. Confirm replica, session and file storage needs with Directus install guidance. | Failover is built by you, usually with a load balancer across VMs. Confirm session and file storage needs with Directus install guidance. |
| Upgrades | Pull a tested image tag and run it against the database. Check migration steps in Directus install guidance first. | Workload updates roll out through the cluster, and cluster upgrades run on their own schedule. Confirm migration steps with Directus install guidance. | Each VM is patched and upgraded in place, so drift between hosts is a risk to manage. |
| Backups | Back up the SQL database and any mounted upload storage on a schedule you run. | Back up the database plus persistent volumes and secrets. Confirm storage locations with Directus install guidance. | Back up the SQL database and the application's file locations on each VM. Confirm paths with Directus install guidance. |
| Skills needed | Container operations, reverse proxy setup and SQL administration. | Cluster operations, storage classes and manifests or Helm, plus Directus configuration. | Linux administration, service management and SQL administration, plus Directus configuration. |
| Cost drivers | Host size, database hosting and the time your team spends on patching and restores. | Cluster capacity and platform team time. Managed cluster fees depend on your provider's terms. | Number of VMs, patching labor, load balancing and the time to keep hosts consistent. |
| Effort to switch models later | Lower when config and file storage move with the image and the database stays in place. | Moving out means rebuilding cluster manifests or charts for the new target. | Moving out means rebuilding host configuration, so document each VM before you start. |
What each model adds between users and the Directus process
Each deployment model adds a different layer between users and the Directus process. REST and GraphQL APIs, Studio and the native MCP server all sit behind the same role-based permissions, so each model needs the same network and access controls around every endpoint.
The Directus process and SQL
Directus runs as a process that connects to an existing SQL database, and the DB_CLIENT setting selects the engine, including PostgreSQL, MySQL, MariaDB, Oracle Database, Microsoft SQL Server, SQLite and CockroachDB. This layer is the same whichever model you pick, so the engine choice drives everything below it. Check that the database version, connection limits and TLS settings match the engine's own requirements before you size any model. Keep the driver choice in version-controlled configuration so every node or container connects identically.
Docker host layer
With Docker, a single host runs the Directus container, so you own the host operating system, container runtime patching, restart policy and any reverse proxy in front of it. Container volumes hold anything written to local disk, which makes volume mounts and their backup part of the design. Check who restarts the container after a host reboot and whether one host is acceptable as a single point of failure. Docker keeps the footprint small, but high availability needs a second host and a load balancer that you configure yourself.
Kubernetes control plane and workloads
The Kubernetes control plane schedules Directus pods, applies rolling updates and restarts failed containers based on health probes, so availability depends on how you configure replicas, probes and resource limits. Your team also operates the cluster itself, including control plane upgrades, ingress, network policies and the secrets that reach the pods. Confirm who owns cluster upgrades and on-call before you choose this model, because a Directus change window is only one part of the cluster's life. Multiple replicas also raise questions about shared upload storage and whether every pod can reach the database.
VM group and load balancer
A group of virtual machines each runs its own Directus process behind a load balancer, which spreads requests and removes a node that fails its health check. You own the image or package on every VM, so configuration drift between machines is a risk to test for. Patch and upgrade one VM at a time, confirming each node serves traffic on the same version before the next one moves. Check how the load balancer health check reaches Directus, which TLS certificates sit on the balancer and which network paths reach the database.
Database and file storage
The SQL database holds the tables and content Directus serves, so it is the system of record for every model. Uploaded files are a second state layer that often sits on local disk unless you configure shared or object storage, and multiple containers or nodes need storage they can all reach. Back up the database and file storage together so that a restore brings back a consistent pair. Confirm your file storage setup, backup tooling and restore test schedule with the database owner before you pick a model, because the backup design changes with the model.
Configuration and secrets layer
Database credentials, the DB_CLIENT setting and other startup values should reach each Directus process from a secrets store that is kept out of images and shared files. Docker can supply values through environment files or mounted secret files, Kubernetes uses its secret objects, and VMs need a store that every node can read. Check who can read and rotate secrets, how a rotation reaches every running instance, and whether configuration changes are reviewed and version-controlled. The same handling applies whichever model you choose, so the model changes delivery while the policy stays the same.
How traffic and data move through each Directus deployment model
The diagram starts with users sending HTTPS requests to a load balancer or ingress inside the client's network. Traffic reaches a Directus app running on one host layer: a Docker host, a Kubernetes cluster or a VM group. The three options are alternatives for the same application, so the hand-offs after the host layer stay the same. Directus sends SQL queries to an existing database and stores files in a storage location. A separate backup job reads the database and writes to a backup store. Everything inside the boundary is the client's to run, so confirm who owns the database, the backup store and restore testing before you choose a model.
Traffic enters through one ingress, and the database and backups stay client-run.
Why the external database sets the availability ceiling
The database, not the host layer, usually sets how much uptime your Directus deployment can reach. Directus connects to an existing SQL database that you run, and the DB_CLIENT setting selects the engine: PostgreSQL, MySQL, MariaDB, Oracle Database, Microsoft SQL Server, SQLite or CockroachDB. Whichever engine you pick, its replication, failover and backup design decides how fast you recover from a primary failure and how much recent data you could lose. Docker, Kubernetes and VM choices affect how quickly a crashed container or host is replaced, but if the primary database is unavailable, Directus cannot serve requests that need it. Before you compare orchestrators, document the recovery targets your business expects and confirm who owns the database: your DBA team, your platform team or a managed database service. The Directus database configuration page lists the supported client values.
Adding Directus instances helps only when your configuration and database let them share state safely. Several containers or pods pointed at one database remove a single application process as a point of failure, but they do not add database redundancy on their own. Before you design a highly available setup, confirm with Directus which settings support more than one instance against the same database, how caching, file storage and extensions behave across instances, and whether any background tasks could run twice. Get that answer in writing from Directus or its documentation, and test it in a staging environment that mirrors your production topology. Record the result as a design input, and treat patterns from stateless web applications as unproven until your own tests confirm them.
SQLite suits small, test or single-team setups because the entire database is one file. That keeps a proof of concept easy to copy, reset and move between hosts. It also means the database sits on one machine, so a failure of that machine takes Directus down with it, and backups need a consistent copy of the file taken while the application may be writing. Before you use it for anything beyond a trial, ask whether your expected write volume, backup method and restore test are acceptable to your operations team. For production systems with availability targets, plan around one of the client-server engines listed above and set its replication and failover standards first, since those decide your ceiling.
Upgrades, backups, monitoring and skills for each Directus model
This table compares how each hosting model handles upgrades, rollback, backups, monitoring and the skills your team needs to run Directus. Read each row as the operating work your team owns under that model. The main takeaway is that the Directus release is one step in a longer change process, and the surrounding platform work decides most of the effort.
| Area | Docker | Kubernetes | VMs |
|---|---|---|---|
| Upgrades | Change the image tag and restart. Test 12.4.0 (September 22, 2026) and 12.5.0 (October 7, 2026) in staging first. | Roll a new image through your deployment pipeline with a rolling update. Check schema changes and health probes before the rollout completes. | Stop the process, install the new release, then restart. Your team scripts and records each step. |
| Rollback | Redeploy the previous image tag. Works only if the database schema is still compatible with the older release, so test it. | Run kubectl rollout undo or redeploy the prior tag. Schema compatibility with the older release still needs testing. | Restore the previous install and the database snapshot taken before the upgrade. Rehearse the restore. |
| Backups | Back up the SQL database and any file storage Directus uses. The container itself holds no content. | Use your database service or cluster backup tooling for the external SQL database and storage. Confirm restores work in a test namespace. | Snapshot the VM and dump the SQL database on a schedule. Check that snapshots capture the database consistently. |
| Monitoring and logging | Container logs, host metrics and health checks, usually through an agent you install and maintain on the host. | Pod logs, probes and cluster metrics, often through a stack your platform team already runs. Confirm Directus endpoints are scraped. | Service logs, host metrics and database monitoring, each collected by tools you configure on the host. |
| Skills | Docker and Compose, reverse proxy setup, SQL administration and secrets handling on the host. | Kubernetes manifests or charts, ingress, secrets, persistent volumes and SQL administration. A platform team usually owns the cluster. | Linux administration, service management, OS patching, SQL administration and backup scripting. |
How a Directus upgrade runs safely on any of the three models
The same sequence applies whether Directus runs in a Docker container, a Kubernetes cluster or a virtual machine. Each step produces a checkpoint you can point to, so an upgrade can be paused or reversed before users are affected. The model changes how the new version is delivered, but the team verifies the same things each time.
Read the target version's release notes
The Directus administrator opens the release notes for the target version on the Directus GitHub releases page and reads every entry that touches the database schema, environment variables, authentication, extensions or the container image. Each change that needs action goes into a short upgrade record that names the current and target versions. The releases page dates show the pace, with 12.4.0 on September 22, 2026 and 12.5.0 on October 7, 2026, but the team must check the current version there itself before planning. Done when every change needing action has an owner and a written decision.
Take and verify a database backup
The database owner takes a full backup of the SQL database that Directus connects to, covering the collections, users, roles and permissions it stores there. The backup goes to storage outside the host being upgraded, and any file storage that sits outside the database is backed up separately. The team then restores it to a scratch database to confirm it is readable and that key tables have the expected contents. Done when the restore test passes and the backup location and restore owner are written in the upgrade record.
Rehearse the upgrade on a staging copy
The team restores the verified backup into a staging environment built the same way as production, using the same database engine version, container image, Kubernetes manifests or VM build. It then runs the upgrade there using the exact commands and configuration planned for production. Any failure, manual fix or schema issue is written into the runbook so production follows the tested path. Done when a repeat run from the same backup finishes with the same result and the runbook matches what was actually done.
Pin the version in every deployment
The platform engineer sets an explicit version in each deployment definition, such as an image tag in a Docker Compose file, an image in a Kubernetes Deployment or a package version in the VM build, and avoids floating tags such as
latest. The previous image, package or VM image is kept in the registry or artifact store so it can be redeployed until the checks in the last step pass. Done when the deployment files in version control show the pinned version and the previous artifact can be started from storage.Roll out the new version by model
The platform owner applies the change with the method for the chosen model. On Docker, the pinned image replaces the running container. On Kubernetes, the Deployment is updated and the rollout is watched until new pods are ready and old ones are gone. On a VM, a new instance is built from the pinned version and traffic moves to it, with the old machine left running. Confirm in the Directus documentation whether the new version applies schema changes on first start, since that decides how fast you can roll back. Done when the new instance reports healthy and serves requests.
Check logins, permissions and API responses
The team runs a fixed test list against the new instance. It signs in through each authentication method in use, confirms that a test user in a restricted role sees only the collections and fields that role allows, and calls the REST and GraphQL endpoints that applications depend on. Responses are compared with the baseline captured before the upgrade. If the native MCP server or AI Assistant is enabled, the same role checks apply to them. Done when every item passes and the results are saved with the upgrade record.
Retire the old instance after checks pass
Once the checks pass, the team keeps the previous version available for the period its change policy sets, then removes it. On Docker and Kubernetes that means deleting the old container or ReplicaSet and its image reference from the registry under the retention rules. On a VM it means decommissioning the old machine. The verified backup stays in place under the team's retention policy. Done when the upgrade record shows the old instance removed and the pinned version recorded as the new baseline.
Which team fits which Directus model
Illustrative scenario: a small platform team builds container images for its other services, already runs Docker hosts, and has no cluster scheduler. It wants Directus as one service in front of an existing SQL database and accepts that a single host is a single point of failure until it adds capacity.
- Skills needed: Container images, environment variables, volume mounts for uploaded files, and a reverse proxy with TLS in front of the service. Setup centers on the
DB_CLIENTsetting and its connection keys, described in the Directus database configuration documentation. - Work the team keeps: Provisioning and backing up the SQL database, pinning image versions, testing each upgrade in a staging copy, and patching the Docker host and its operating system.
- Recovery work: Restart policies, health checks and alerts belong to the team, because no scheduler replaces a failed container on its behalf.
- Scaling limit: Effort stays modest while traffic and uptime needs stay within what one host can serve. Confirm the availability target with the business before you commit to a single host.
- Warning sign: The service must survive a host failure without manual action, or nobody on the team can restore the database on a tested schedule. Then Docker on one host is a poor fit.
Before you choose this model, confirm how long a manual restore takes in your environment and whether a single-host outage is acceptable to the people who depend on the content.
Illustrative scenario: a platform team already runs Kubernetes with monitoring, a deployment pipeline and a secrets store. It wants Directus deployed the same way as its other services, with the SQL database either inside the cluster or in a managed service the team already supports.
- Skills needed: Writing or reviewing manifests or Helm values, managing ingress and TLS, wiring secrets into pods, and configuring storage for uploaded files. Confirm whether your team will use a community chart, a vendor-supplied one, or its own manifests.
- Work the team keeps: Database backups and restore tests, Directus version upgrades through the pipeline, and the role and SSO settings inside Directus, which the cluster does not manage.
- Work the cluster absorbs: Rescheduling failed pods, rolling updates and scaling are platform features that the team configures, monitors and tests.
- Scaling caveat: Confirm in the Directus documentation whether and how multiple replicas can share the database and file storage before you scale out.
- Warning sign: Nobody on the team owns the database or file storage outside the cluster, or the only reason to run the cluster is this one service. Then the operating cost of Kubernetes outweighs the Directus-specific work.
Check whether your pipeline can roll back a Directus release and restore the database to match, because those two steps are separate and both must be tested.
Illustrative scenario: an infrastructure team runs a VM estate with a documented patch cycle, change windows and backup jobs. It wants Directus on a VM in the same estate so it can reuse those routines without creating a new platform.
- Skills needed: OS hardening, a process supervisor such as systemd, a reverse proxy with TLS, and database administration. Confirm the install steps in the Directus documentation for the method your team chooses.
- Work the team keeps: OS and package patching in existing change windows, VM-level backups, database backups and restore tests, and access control on the host.
- Backup gap: A VM snapshot may not capture a consistent database state, so the team needs a database-level backup alongside it.
- Upgrade path: Directus upgrades are manual changes on the VM unless the team scripts them. Read the release notes for each version in the Directus releases on GitHub before you schedule a change window.
- Warning sign: Patch windows and restores are rarely tested, or the team would have to write deployment automation from scratch for every upgrade. Then the VM model adds risk to routines that already exist.
Ask whether your existing backup job has restored a database to a clean host within the last review cycle, because that test decides whether this model works for your estate.
What teams ask before choosing a Directus deployment model
How much operating effort does each Directus deployment model add, and what drives it?
Docker on a single host usually adds the least operating work, a Kubernetes cluster adds the most, and virtual machines fall between them. Effort is driven by how many environments you run, whether you need more than one running instance, who owns the SQL database, how you back up and restore it, how often you upgrade Directus, and what your patching and monitoring standards require. On a VM, you own operating system patching and hardening. On Docker, you own the container host and its updates. On Kubernetes, you own the cluster as well as Directus. Ask each option to be written out as a list of tasks, with an owner and a frequency for each task, so you can compare them on the same terms.
Can an in-house team run Directus on Docker without outside help?
Yes, a team with container, SQL database and web server skills can run Directus on Docker alone, but it must own every part of the stack. Directus connects to an existing SQL database through its DB_CLIENT setting, so your team must run and back up that database, and you should check the supported engines in the Directus database configuration documentation before you choose one. The team also handles the reverse proxy, TLS certificates, secrets, file storage for uploads, monitoring and a tested process for every upgrade. Test a restore in a non-production environment before you rely on your backups. If you want outside help, DeployOpen implements, hardens and documents self-hosted platforms inside your own infrastructure under a written scope.
What does a Kubernetes cluster add beyond running Directus in Docker?
A Kubernetes cluster adds scheduling, automatic restarts, rolling updates and a standard way to run several copies of a container, but it also adds a cluster to operate. Directus still needs a SQL database, storage for uploads and a reverse proxy, so those remain your responsibility on any model. Cluster work includes control plane upgrades, node patching, ingress, persistent storage classes, secrets handling, network policies and cluster monitoring. The extra effort is worth it when your organization already runs and staffs clusters, deploys many services the same way, or needs availability that a single host cannot give. For one Directus instance and a small team, the cluster is often the larger operating task. Confirm with Directus which settings allow more than one running instance, and load test any multi-instance setup before you rely on it.
How long does a first Directus deployment take?
No single duration applies to every Directus deployment, so the answer depends on scope, and you should ask for a written plan before you accept any timeline. Ask for phases with a milestone and an owner for each, such as environment setup, database connection, identity integration, data model and content work, testing, backup and restore drills, and go-live. Scope drivers include the number of collections and integrations, whether SSO and audit logging are required, how many environments you need, how much review your compliance team expects, and whether your team has deployed containers before. Ask what the plan assumes, what would move the dates and who approves changes. Fixed-scope engagements agree scope, deliverables and timelines in writing before work starts, so the written plan is where you check the schedule.
What must we give a partner so the quote is accurate?
A quote is accurate when the written scope states the hosting target, the data, the people and the controls, so gather those details before you ask for one. Start with the hosting target: the cloud account, data center or air-gapped network that will run Directus, and the container platform you already operate. Name the SQL database engine and version, the expected number of users, collections and integrations, and the identity provider for SSO. State your backup and retention expectations, your recovery time and recovery point targets, the environments you need, and whether you need audit logging, evidence for a compliance review or security testing. Say whether AI features such as the native MCP server or the AI Assistant are in scope, since they affect permissions and testing. DeployOpen does not publish a price list, and a quote follows from the written scope.
Does Directus Cloud remove the operating work of self-hosting?
Directus Cloud removes some of the hosting work, but the exact split depends on what the managed service includes, so confirm it before you compare models. The Directus README describes Directus Cloud as the managed service, alongside self-hosting with Docker. Ask Directus what is included: database hosting, backups and restore, upgrades, file storage, uptime commitments, regional hosting, SSO support and access controls. Then list the tasks that stay with your team, such as content modeling, role assignments, integrations with your other systems and any evidence your compliance team needs. Pricing and terms are set by Directus, so get them in writing from Directus before you compare costs with a self-hosted model.
How do I confirm my organization can run Directus in production?
Confirm your license eligibility on the Directus license page before any production use. Directus is licensed under the Monospace Sustainable Core License 1.0, and the license file in the repository should be read alongside that page. Map each use your organization has, such as internal tools, customer-facing products and any work you do for other organizations, and record the conclusion in your decision file. Directus replaced its previous license in 2026, so older internal summaries may describe different terms. Ask Directus or your legal counsel to confirm your position before you commit budget or customer data. This page does not state the license terms, so start from the source text.
How DeployOpen scopes, delivers and supports Directus deployments
DeployOpen plans, implements, integrates, hardens, backs up, upgrades and documents self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks. For Directus on Docker, Kubernetes or virtual machines, the runtime choice and its database, storage, backup and upgrade decisions are written into the scope before any build starts. Most engagements are fixed-scope, and ongoing support is available as a retainer.
How we scope
- The written scope names the runtime: Docker, Kubernetes or virtual machines, with the reasons agreed up front.
- Scope covers sizing inputs, expected user and collection counts, and which SQL database Directus will connect to.
- Fixed-scope engagements agree deliverables and timelines in writing before work starts, so quotes compare on one basis.
How we build
- Configuration follows the database configuration reference for your existing SQL database and DB_CLIENT setting.
- Access roles, permissions and any identity integration are configured and tested before handover, with licensing confirmed.
- If enabled, the native MCP server and AI Assistant are tested under the same role-based permissions as human users.
How we hand over
- Written documentation covers the chosen runtime, the database connection, backup and restore steps, and the upgrade procedure.
- Your team receives the runbooks, configuration files and evidence needed for internal and compliance reviews.
- Handover is confirmed against the written scope, so open items are named before the engagement closes.
How we support
- Retainers cover ongoing support and upgrades after handover.
- Upgrades are planned against each Directus release and rehearsed in a non-production copy first.
- Continuous testing of the Directus deployment is available as a retainer, scoped in writing like any other engagement.

