TimescaleDB on Docker vs Kubernetes vs VMs

Docker suits development and single-host trials, VMs suit teams with PostgreSQL operations skills, and Kubernetes suits teams that already run a cluster and a platform team. High availability, upgrades and backups are the factors that decide between them.

On this page

Which TimescaleDB on Docker, Kubernetes or VMs setup fits your team

Choose Docker for development and single-host work, VMs for teams with PostgreSQL operations skills, and Kubernetes only when you already run a cluster and have a platform team to operate it. The model matters less than who will patch the database, run and test backups, and fail over when a node or zone is lost, because each option hands those tasks to a different group. Write down the named owner for each task before you pick a model, and treat the gaps as the cost you have not yet budgeted. The README's one-line install script is for local development and testing only, so any production setup needs its own plan on every model: hosts, storage, replication, monitoring and a tested restore procedure.

Docker is the quickest path to a running instance. The README quick start runs the timescale/timescaledb-ha:pg18 image, which suits learning hypertables and testing queries on one machine. It is not a high availability design: one host means one failure domain, and volumes, WAL archiving and restore tests are your job. On VMs, your team owns the operating system, PostgreSQL minor and major upgrades, the TimescaleDB extension version that must match them, streaming replication and the failover tool you select. If nobody on the team has run PostgreSQL in production, that list is the reason to choose another model or to bring in outside help. Kubernetes moves the same tasks onto a cluster, adding storage classes, persistent volumes, a database operator and cluster upgrades. It pays off only when the platform team already runs that cluster well.

Before you choose, run three checks. First, name the person who would restore the database at 2 a.m. and ask whether they have done it on this model. Second, set the recovery target you need and test a restore on a copy, which tells you more than any diagram. Third, check the TimescaleDB build against your planned PostgreSQL major version before you standardize on an image or package. The latest release on the timescale/timescaledb releases page is 2.30.2, published September 29, 2026, so confirm its PostgreSQL support in the release notes for your version. If the answer to the first check is no, a VM run by an experienced PostgreSQL operator is a more practical fallback than a Kubernetes cluster that nobody owns. If you bring in an implementation partner, write the patching, backup and failover plan into the written scope before work starts.

How TimescaleDB on Docker, Kubernetes and VMs differ on operating effort

This table compares what your team operates for self-hosted TimescaleDB on Docker, Kubernetes and virtual machines, row by row. Docker is quickest to start but leaves the most operations with your team, Kubernetes moves some work to a platform team but adds cluster skills, and VMs keep the familiar host model. Official Helm chart or operator support is not confirmed here, so check it with Tiger Data or your operator vendor before you choose.

FactorDockerKubernetesVMs
Intended useDevelopment, testing and single-node servicesMulti-service platforms with an existing cluster and platform teamLong-lived database hosts managed like other PostgreSQL servers
Who owns the hostYour team, on the container host you managePlatform team owns the cluster; database team owns the databaseYour infrastructure team owns the OS, patching and networking
High availability designYou design and test replication and failover yourselfDepends on the operator you pick; confirm its failover modelPostgreSQL replication and a failover tool you select and test
Storage handlingNamed volumes or bind mounts; you manage the host diskPersistent volume claims; storage class behavior varies by clusterAttached block or local disks you size and snapshot
Upgrade path for PostgreSQL and the extensionChange the image tag, then test the extension upgrade before rolloutOperator-driven or manual; confirm the operator's upgrade supportPackage upgrades on your schedule; test PostgreSQL and the extension together
Backup approachVolume snapshots or logical dumps you schedule and restore-testDepends on your backup tool and operator; confirm the restore procedureHost-level snapshots or PostgreSQL-native backups you script and test
MonitoringContainer metrics plus database metrics you wire inCluster and database metrics; confirm exporter support with the operatorHost agents and database metrics, often reusing existing tooling
Skills neededContainer runtime, PostgreSQL administration, volume managementKubernetes operations, storage classes, PostgreSQL administrationLinux administration, PostgreSQL administration, network and storage
Cost driversHost count, provisioned disk, staff time for failover and backup testingCluster capacity, platform staff time, operator support termsVM count, storage, OS licensing where applicable, administrator hours

How TimescaleDB on Docker, Kubernetes and VMs lay out PostgreSQL and storage

The three models differ in who creates the PostgreSQL instance, where its data lives and who replaces a failed node. What they share is the database engine: TimescaleDB runs inside PostgreSQL, so the PostgreSQL version and the extension version move together in every model. Read the cards in order, then check the storage, replica and upgrade questions against your own environment.

Docker host layout

A Docker host runs the timescale/timescaledb-ha:pg18 image named in the TimescaleDB README, which starts one container with PostgreSQL 18 and TimescaleDB available. Each container is one PostgreSQL instance, so the host, the container runtime and the volume mounts form your availability boundary. Map the data directory to a named volume or a host path on a disk you back up, and confirm the data path and initialization behavior in the image documentation. The README's one-line install script is for local development and testing only, so keep it out of production planning. Check how you restart, patch and restore the container on a schedule.

TimescaleDB README

Kubernetes stateful workloads

Kubernetes runs the database as a StatefulSet or an operator-managed cluster, with each pod tied to its own PersistentVolumeClaim so storage follows the pod through restarts. The storage class decides durability, including reclaim policy, snapshot support and the disk performance you can expect. Kubernetes packaging details must be confirmed: which Helm chart or operator you use, whether it runs the timescaledb-ha image, how it pins the PostgreSQL and TimescaleDB versions, and who owns failover. Ask for those answers in writing before you size the cluster or agree a scope.

Virtual machine package install

On a virtual machine, PostgreSQL and TimescaleDB usually come from operating system packages, and the extension is enabled through the server configuration. The package repository sets the versions, so the PostgreSQL major version, the TimescaleDB build and the repository source must agree before you install. The data directory sits on an attached disk that you size, snapshot and back up at the hypervisor or file level. Confirm which TimescaleDB edition your repository provides, and whether your patch process updates the server and the extension in one change window.

Replicas and backups placement

In all three models, replicas and backups sit outside the primary, and you choose that placement deliberately. A standby needs matching PostgreSQL and TimescaleDB versions, and a backup you have never restored does not show that recovery works. Decide which failure domain the standby shares with the primary, where backup copies are stored and who runs the restore test. Confirm with your platform team which replication and backup tooling they support for TimescaleDB before you commit to a model.

Shared upgrade path

PostgreSQL 18 was first released on September 25, 2025 and is supported until November 14, 2030, and TimescaleDB runs inside that server, so every model upgrades both together. A major upgrade moves the server binaries and the extension in one plan. After the binaries change, the extension update step runs inside each database, and your rollback path depends on a backup taken before the change. Confirm the exact sequence in the TimescaleDB upgrade documentation, then rehearse it on a copy in each model.

PostgreSQL versioning policy

Choosing between Docker, Kubernetes and VMs by team skill and availability need

The diagram starts with one question: is this a development or test environment? A yes sends the work to Docker. The TimescaleDB README's quick start uses a Docker image, but its one-line install script is meant for local development and testing only. A no moves to whether the organization already runs and staffs a Kubernetes platform, and a yes there leads to Kubernetes. A no asks whether the team has PostgreSQL operations skills to own backup, failover and upgrades. A yes leads to virtual machines, and a no leads to a managed service or implementation partner. Check each answer against who will actually run those tasks.

Three questions route teams to Docker, Kubernetes, VMs or a partner.

How sizing, retention and storage shape the deployment choice

Sizing for TimescaleDB follows three inputs: the ingest rate, chunk and retention settings, and the storage the chosen model can attach. The container or VM label sets none of them. Start by writing down the sustained ingest rate and peak bursts, the number of series and rows per series, the chunk interval, the retention window and the query ranges your dashboards and reports actually scan. Chunk size decides how much data a query or background job touches at once, and retention decides how much history the disk must hold before old chunks are dropped. Measure these on your own data in a staging environment, then give those figures to any vendor or consultant you ask to size the workload. Ask for a written sizing that states its assumptions for each figure, and treat an instance recommendation without them as incomplete.

Data retention policies and the columnstore are Community Edition features under the Timescale License, and the Apache 2 Edition does not include them, according to Tiger Data's editions page. Under that license you can run Community Edition free in your own on-premises or cloud infrastructure, but you cannot offer it as a service. A team that needs retention or columnstore compression must therefore plan the storage and background jobs for that build on whichever platform it picks. The README quick start uses the timescale/timescaledb-ha:pg18 image, and its one-line install script is meant for local development and testing only. Confirm which build each production image contains, and whether scheduled jobs resume correctly after a container or pod restart, before you size disks around retention.

What upgrades, backups and monitoring demand on each model

This table shows who does the upgrade, backup, monitoring, host patching and on-call work for TimescaleDB on Docker, Kubernetes and virtual machines. Read each row for the task you will own, and each cell for the party who performs it. Whichever model you choose, confirm each PostgreSQL and TimescaleDB upgrade step in the release notes first, since PostgreSQL 18 is supported until November 14, 2030 and TimescaleDB 2.30.2 was published on September 29, 2026.

TaskDockerKubernetesVMs
PostgreSQL minor upgradesYour team changes the image tag and restarts the containerPlatform team updates the chart or operator, your DBA checks the rolloutYour DBA or ops team patches packages and restarts each node in a window
PostgreSQL major upgradesYour DBA plans the new image, data migration and rollbackYour DBA confirms the operator's upgrade path before any planning startsYour DBA runs pg_upgrade or dump and restore on each host
TimescaleDB extension upgradesYour team pins the image, tests, then runs the extension updateYour team updates the image in the chart, then runs the extension updateYour DBA installs the new package on each node, then runs the extension update
Backups and restore testingYour team schedules volume backups and runs restore tests by handPlatform team configures backup tooling, your DBA validates restoresYour ops team runs backup jobs, your DBA owns restore drills on each host
Monitoring and alertingYour team wires exporters and alerts to the containers it runsPlatform team runs cluster monitoring, your DBA defines database alertsOps team uses host monitoring, your DBA adds PostgreSQL and hypertable alerts
Patching the host or imageYour team rebuilds the base image for OS and library fixesPlatform team patches worker nodes, your team rebuilds the imageOps team patches the OS on each VM, usually in a maintenance window
On-call ownershipYour team owns restarts and volume issues on the Docker hostPlatform team takes node pages, your DBA takes database pagesOne ops group often owns both the host and the database pages

How high availability works for TimescaleDB on Docker, Kubernetes and VMs

On Docker, high availability is something you design around the containers, because the Docker engine does not choose a primary, fence a failed node or route client connections. A typical design runs a primary and at least one standby on separate hosts, with a replication tool that promotes a standby if the primary fails. Each job below needs a named component and an owner.

  • Replicas: Run the primary and standbys as separate containers on separate hosts, each with its own persistent volume. Replicas on one host protect against a container failure but not a host failure.
  • Failover: Choose automatic promotion by a cluster manager or a written manual promotion runbook. Automatic promotion needs a leader election method so that two nodes cannot both accept writes.
  • Fencing: Make sure a failed or partitioned primary cannot accept writes after promotion. A container restart policy restarts the process but does not fence it.
  • Connection routing: Put a proxy or virtual address in front of the database so applications follow the current primary. Test how long clients take to reconnect after a switch.
  • Backups: Ship base backups and WAL archives to object storage or a backup host outside the Docker hosts, and rehearse restores on a schedule.

The timescale/timescaledb project quick start runs the timescale/timescaledb-ha:pg18 image and states that its one-line install script is for local development and testing only, so confirm with Tiger Data which failover approach it supports for your image and version before you commit.

Questions buyers ask before choosing a TimescaleDB deployment model

What drives the cost of running TimescaleDB on Docker, Kubernetes or VMs?

The biggest drivers are the infrastructure under PostgreSQL, the people who build and run it, and how much resilience you need. Infrastructure includes the compute and storage for hypertables, the replicas you run for high availability, and backup storage and retention. Docker suits a small footprint on hosts you already operate, but you still own host patching and volume design. Kubernetes adds cluster capacity, storage class configuration and operator skills, so its cost is mostly engineering time. VMs give you full control of the operating system and PostgreSQL packages, with less orchestration overhead but more manual provisioning. Ask any quote to price each model against the same workload, retention period and availability target so the comparison is fair.

Which TimescaleDB costs are one-time and which recur?

The license can be zero: under the Timescale License, you can install TimescaleDB Community Edition in your own on-premises or cloud infrastructure and run it for free, but you cannot offer it as a service. Compare the editions before you decide, because the Apache 2 Edition does not include continuous aggregates, the columnstore, retention policies or job scheduling. One-time costs are design, initial build, migration of existing data, hardening and the documentation your auditors will ask for. Recurring costs are compute, storage, backup retention, monitoring, on-call time and the upgrades that follow each PostgreSQL and TimescaleDB release. Support contracts, if you buy them, also recur.

Can our team run self-hosted TimescaleDB without outside help?

Many teams can, provided they already operate PostgreSQL in production and have someone who has restored a database from backup. The quick start in the TimescaleDB README runs a Docker image and warns that its one-line install script is for local development and testing only, so production work starts after that step. Plan to own high availability, failover testing, backup and restore, monitoring, and upgrades of both PostgreSQL and the extension. Outside help is most useful for the design review, the first build, the restore drill and the handover notes. DeployOpen usually works on fixed scope, with scope and deliverables agreed in writing before work starts. Confirm the skill gaps in your own team before you decide.

How long does a first TimescaleDB deployment take, and what sets that time?

No single duration applies, because the first deployment depends on the model you choose, the number of environments and the availability target. Ask any provider for a written timeline tied to the scope. The main drivers are:

  • The platform: a single Docker host moves faster than a Kubernetes cluster that needs storage, networking and operator decisions first.
  • Availability design: a single node is quicker to stand up than a replicated setup whose failover must be tested.
  • Data migration: the size, change rate and downtime window for moving existing time-series data.
  • Approvals: security review, change control and access setup inside your own infrastructure, which can set the pace more than the build does.

Ask for milestones and an acceptance test for each one.

What skills, backup testing and on-call coverage does the team need?

Your team needs working PostgreSQL skills, a backup and restore practice that is tested on a schedule, and an on-call rota that can respond to database incidents. In practice that means:

  • PostgreSQL administration: roles, connection limits, vacuum and replication behavior, and reading query plans on hypertables.
  • Backup testing: restores into a separate environment on a schedule, with recorded recovery times and a written runbook.
  • On-call: named owners, alert thresholds and escalation paths for storage, replication lag and failed background jobs.

Kubernetes adds container and cluster skills to this list, and VMs add operating system patching. Check each item against the people you have before you choose a model.

What does a managed Tiger Cloud plan change for the operating model?

Tiger Cloud moves infrastructure and much of the operating work to Tiger Data, so your team spends less time on hosting, backups and upgrades. Published prices on the Tiger Data pricing page start at $30 per month for the Performance plan and $36 per month for the Scale plan, with Enterprise at custom pricing and a free 30-day trial of Performance. Developer support by email is included on all plans. 24x7 production support is a paid add-on, and the Enterprise plan includes it with a 1-hour response time for Sev 1 issues. These support levels apply to Tiger Cloud only. Self-hosted response times depend on your own on-call rota and any support contract you buy. Confirm which operations each plan covers and where your data would reside before comparing.

What should a written quote for a self-hosted TimescaleDB project include?

A useful quote lists each item of work, who performs it and what you receive, so you can compare the three models on the same terms. Ask it to state:

  • The deployment model, host type and edition, including whether the Apache 2 Edition or Community Edition is in scope.
  • High availability design, failover testing and the backup and restore drill, with the number of tests included.
  • The upgrade approach for PostgreSQL and the TimescaleDB extension, and the maintenance window assumptions.
  • Documentation, runbooks and a handover session, with named deliverables.
  • Exclusions, your responsibilities and acceptance criteria for each milestone.

DeployOpen agrees scope, deliverables and timelines in writing before work starts, so ask every provider for the same level of detail.

How DeployOpen scopes and delivers self-hosted TimescaleDB deployments

DeployOpen is a Chainscore Labs company that plans, implements, hardens, backs up, documents and supports self-hosted open-source platforms inside the client's own cloud accounts, data centers or air-gapped networks. For TimescaleDB on Docker, Kubernetes or virtual machines, the deployment target is chosen against your sizing, availability and licensing requirements before any build starts. Engagements are fixed-scope, with the scope, deliverables and timeline agreed in writing first.

How we scope

  • The written scope fixes the TimescaleDB edition, PostgreSQL version and Docker, Kubernetes or VM target.
  • Sizing inputs the scope should capture: ingest rate, retention period, query patterns, and expected growth of the hypertables.
  • Licensing check: confirm whether the Apache 2 or Community Edition fits internal use or a service offering.

How we build

  • Docker builds start from the timescaledb-ha:pg18 image, since the one-line install script is for local development and testing only.
  • Kubernetes builds document storage classes, failover behavior and upgrade order for the database pods.
  • VM builds cover OS hardening, PostgreSQL configuration, extension installation and the backup target on the client's own hosts.

How we hand over

  • Written runbooks cover backup and restore, failover, PostgreSQL and extension upgrades, and monitoring for your team.
  • Restore tests listed in the written scope are run on your infrastructure and recorded before handover.
  • Architecture notes record the Docker, Kubernetes or VM decision and the sizing assumptions behind it.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Upgrade planning covers PostgreSQL major versions and TimescaleDB releases, which ship on separate schedules.
  • Ask for the support hours, response targets and escalation path in writing before signing a retainer.

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.