Which PostHog on Docker, Kubernetes or VM setup fits your team
PostHog documents a free Docker Compose hobby deployment on a single server, but it also states that self-hosted deployments are officially unsupported and that new Kubernetes deployments of its paid self-hosted product are no longer supported. That means a team that must self-host PostHog is choosing a host model where the vendor does not carry the support risk, so the choice has to be made on capacity and staffing. The three options are a single-server Docker Compose install for evaluation or small workloads, a virtual machine your own team runs, and a Kubernetes cluster with no vendor-documented path for new paid deployments. The hobby setup recommends a server equivalent to 4 vCPU, 16 GB of RAM and more than 30 GB of storage, so size the host first. Check the self-host documentation for the edition you plan to run.
Docker Compose fits a team that needs a working instance for evaluation, a proof of concept or a small internal workload, and that accepts PostHog will not answer infrastructure or product questions on a self-hosted instance. A virtual machine fits a team with a standing Linux operations function that will own patching, the Compose stack, backups and restore tests on that host, but confirm with PostHog which VM layouts it documents before you commit. Kubernetes fits only if your platform team already runs the cluster and will carry upgrade and support risk without vendor documentation for new paid deployments. The README says open-source deployments should scale to approximately 100k events per month and recommends moving to PostHog Cloud above that. If your volume is already past that level, the self-hosting question is largely settled, and the PostHog pricing page lists a free monthly allowance of the first 1 million analytics events on Cloud.
The decision turns on two things: who runs the platform day to day, and who carries the support risk when something breaks. Ask who will own upgrades, backups, restore tests, TLS, secrets and monitoring, how many hours per week that person can give, and write the answer down. Then ask who gets called when ingestion stops at an inconvenient hour. On a self-hosted instance the honest answer is your own team, so your security and compliance functions should review that staffing plan before you deploy. If that answer is not acceptable, PostHog Cloud or an implementation partner working to a written scope is the more defensible route. Before committing, confirm in writing which features your edition includes, since premium features from the ee directory require a PostHog license on a self-hosted instance.
How Docker Compose on a VM compares with Kubernetes on sizing, availability and upgrades
This table sets PostHog's single-VM Docker Compose hobby path against Kubernetes on the factors that decide whether a team can run it. Read the Docker column as documented guidance and treat each gap as a question to put to PostHog before you commit. The main takeaway is that PostHog's docs do not describe Kubernetes as a supported route for new paid self-hosted installs, and self-hosted installs of either kind come without PostHog customer support.
| Factor | Docker Compose on a single VM (option A) | Kubernetes (option B) |
|---|---|---|
| Documented status | Free hobby path under MIT, officially unsupported. The README says open-source deployments should scale to about 100k events a month. | New Kubernetes deployments of the paid self-hosted product are no longer supported, per PostHog's self-host docs. |
| Sizing reference | Documented reference in PostHog's self-host docs: a server equivalent to 4 vCPU, 16 GB RAM and more than 30 GB storage. | No sizing reference in the hobby guidance. Ask PostHog for node, storage and database sizing for your event volume. |
| High availability | One VM means one host failure takes the stack down. Confirm with PostHog whether any multi-host layout is documented. | Not documented as a supported path for new paid deployments. Confirm any HA design with PostHog in writing. |
| Upgrades | Ask PostHog for the documented upgrade path and rollback steps for the hobby deployment. | Ask PostHog whether an upgrade path exists for a cluster install, given that new paid Kubernetes installs are not supported. |
| Backups | Ask PostHog for the recommended backup method and restore test steps for the stack's data volumes. | Ask PostHog whether backup guidance exists for a cluster, and confirm who owns storage snapshots in your setup. |
| Licensing | MIT outside the ee directory. Premium ee features need a PostHog license on self-hosted instances. | Same terms as Docker. MIT outside the ee directory, and premium ee features need a PostHog license. |
| Vendor support | Officially unsupported. PostHog does not offer customer support for infrastructure or product questions on self-hosted instances. | Same position. Confirm in writing whether any support covers a Kubernetes install before you commit. |
| Skills needed | Linux host administration, Docker Compose, TLS termination and a plan for patching the host and containers. | Cluster operations, ingress, persistent storage and monitoring, plus PostHog-specific configuration. |
What runs in each PostHog deployment model
Each PostHog deployment model draws the line between PostHog and your team in a different place. Four boundaries matter: the Docker Compose hobby stack, the virtual machines beneath it, Kubernetes, and PostHog Cloud. Read them in order to see which operating tasks move to PostHog and which stay with your team.
Docker Compose hobby stack
PostHog's self-host documentation offers a free Docker Compose hobby deployment under the MIT license, installed with a deploy-hobby script. It runs on one host, and the documentation recommends a server equivalent to 4 vCPU, 16 GB of RAM and more than 30 GB of storage. Treat officially unsupported as the key condition: PostHog states that self-hosted deployments are unsupported and offers no customer support for product or infrastructure questions. Confirm that one host meets your sizing and recovery needs, and note that the README recommends PostHog Cloud above approximately 100k events per month.
Self-host docsThe VM layer your team owns
Every self-hosted PostHog model runs on a host your team builds and operates. Operating system, storage, network paths, patching and backups all sit with you, since PostHog does not provide customer support for infrastructure on self-hosted instances. Decide who applies operating system patches, how storage is sized and expanded, and how backups are taken and restored. Test a restore before go-live and again after each upgrade, and confirm that the sizing in your environment matches the documented guidance.
Kubernetes for new paid deployments
PostHog's self-host documentation says new Kubernetes deployments of its paid self-hosted product are no longer supported. Treat any Kubernetes design for a paid self-hosted install as outside current documentation until the vendor confirms otherwise in writing. If you run a cluster anyway, your team owns the cluster, ingress, storage classes, upgrades and whatever deployment artifacts you adopt, and no PostHog support path covers that work. Ask for the supported models for your edition before you commit staff time.
Self-host docsPostHog Cloud as the boundary
PostHog Cloud is the managed boundary, offered in two regions: US (Virginia) and EU (Frankfurt). Confirm which region fits your data residency requirements before any events are sent. The free plan includes 1 project and 1-year data retention, and the Pay-as-you-go plan raises that to 6 projects and 7-year retention. SSO, audit logs, custom roles and project permissions are sold as platform packages, so check those controls against your access requirements. You still own which events you send and who inside your organization can see them.
PostHog pricingEvent volume sets the first branch, then licensing and skills decide the rest
The path starts with expected events per month. Above about 100k, PostHog's README recommends moving to PostHog Cloud. Below that, premium features from the ee directory need a PostHog license on a self-hosted instance, so check that before choosing a host. Next, ask whether the team has Kubernetes skills. Self-hosted PostHog is officially unsupported, and new Kubernetes deployments of the paid self-hosted product are no longer supported, so a Kubernetes choice needs written vendor confirmation first. Without that confirmation, the path ends at Docker Compose on one VM, which needs a named operations owner.
Decision path from event volume to Docker Compose or a vendor confirmation step.
Why Kubernetes is no longer a documented route for new PostHog self-hosting
PostHog's self-host documentation states that new Kubernetes deployments of its paid self-hosted product are no longer supported, and it names the free Docker Compose hobby deployment as the documented path. A platform team that already runs clusters may expect Kubernetes to bring standard scheduling, declarative rollouts, health-based restarts and tooling its engineers already know. Those benefits apply to how containers are run, so they matter to the platform team, but they only help if the deployment itself is one the vendor still documents. For this decision, the first question is whether PostHog will accept a cluster as a supported route for the paid product at all, and that answer should come before anyone writes a chart or a set of manifests. PostHog self-host documentation
Kubernetes does not change three things. The vendor position stays the same: PostHog's documentation says self-hosted deployments are officially unsupported, and PostHog does not offer customer support for product, infrastructure or other questions on self-hosted instances. The support gap therefore sits with your team whatever the scheduler is, including node pools, ingress, persistent storage and database failover. The upgrade path also stays a sequence you must plan. The cluster can roll out a new image on schedule, but it cannot tell you whether a new version needs a data migration, a dependency change or a configuration change. Premium features from the ee directory also require a PostHog license on a self-hosted instance, and that condition applies in a cluster exactly as it does on a single host.
Before design work starts, get written confirmation from PostHog on three points. First, whether any Kubernetes deployment of a paid self-hosted product is permitted, and under which agreement or license terms. Second, what support scope applies to that cluster, including who answers for infrastructure faults and failed upgrades. Third, how an existing cluster would be handled: whether it can keep running, what migration path PostHog would expect, and how licensing changes if you move. Ask the same questions about backup and restore responsibilities. An implementation partner's scope can cover the build and the handover, but it does not replace a vendor answer, so put the question to PostHog directly and keep the reply in the project file.
Upgrades, backups, monitoring and skills for each model
This table shows who carries upgrades, backups, monitoring, data storage and on-call for each deployment model. Read each row as an ownership question, because PostHog does not offer customer support for infrastructure questions on self-hosted instances in any of these models. The main takeaway is that Kubernetes adds cluster operations to the same workload, and PostHog's self-host documentation notes that new Kubernetes deployments of its paid self-hosted product are no longer supported.
| Factor | Docker Compose on a VM | Kubernetes |
|---|---|---|
| Upgrade path | Follow the upgrade steps in PostHog's self-host documentation, then test and apply each change on the host. | Follow PostHog's self-host documentation for upgrade steps, and confirm the current Kubernetes support position before planning this path. |
| Backup and restore | Back up the data volumes and database, and confirm the restore steps in PostHog's self-host documentation. | Back up persistent volumes and the database, and rehearse restores in a non-production cluster before relying on them. |
| Monitoring | Host metrics, container health and disk growth need monitoring that your team installs and runs itself. | Cluster, node, pod and storage metrics need a monitoring stack that your platform team operates, with alerts for each PostHog workload. |
| Data storage ownership | Event data sits on disks and databases in your VM or cloud account, so your team sets location, access and deletion. | Event data sits on persistent volumes and databases in your cluster or cloud account, so storage classes and retention are your decisions. |
| On-call and skills | Linux administration and Docker. PostHog offers no customer support for infrastructure questions on self-hosted instances. | Cluster operations, including upgrades, networking, persistent storage and incident response. PostHog offers no customer support for infrastructure questions on self-hosted instances. |
What high availability means for a single-host PostHog install
The documented hobby deployment runs PostHog on one server, so that host is a single point of failure unless your team designs redundancy around it. The Docker Compose setup installed by the deploy-hobby script is a single-machine starting point. Before anyone promises availability internally, confirm in writing with PostHog what it supports for self-hosted topologies. Its self-host documentation states that self-hosted deployments are officially unsupported and that PostHog does not offer customer support for infrastructure questions on self-hosted instances. That means the reliability design, and any failover you add, sits with your team and any partner you hire.
The sizing baseline in the self-host documentation is a server equivalent to 4 vCPU, 16 GB of RAM and more than 30 GB of storage. Treat that as the floor for a single host, not a measure of headroom. The PostHog README says open-source deployments should scale to approximately 100k events per month and recommends migrating to PostHog Cloud above that level. Track monthly event volume against that guidance from the first day of production, and set a decision date for migration before ingestion approaches it. On one host, each step of load growth raises the cost of a failure. Ask PostHog to confirm how the baseline changes with your event mix, session replay volume and data retention period.
Because the hobby setup adds no redundancy, your team has to design the recovery path. Keep backups off the host, in storage that survives loss of the server, and cover both the database and the volumes that hold event and session data. Test restores on a separate machine on a fixed schedule, and record how long each restore takes, since stakeholders will ask for that figure. Monitor event ingestion itself, not only host CPU and memory. Alert when accepted event volume drops to zero or falls sharply from its normal pattern, so a broken pipeline does not go unnoticed for days. Write these checks into the runbook before go-live and assign an owner to each one.
Which team each deployment model suits
The Docker Compose hobby deployment fits a product team of one or two engineers with modest event volume. PostHog offers it free under the MIT license, installs it with a deploy-hobby script and sizes the host at about 4 vCPU, 16 GB of RAM and more than 30 GB of storage, according to its self-host documentation. Compose keeps the moving parts few: one host, one set of containers and one place to look when something breaks, which is a genuine strength for a small team. The fit ends when volume grows or when the team cannot absorb the work of running an unsupported stack.
- Volume ceiling: The PostHog README says open-source deployments should scale to about 100k events per month and recommends PostHog Cloud above that, so measure expected volume before you install.
- Support: PostHog does not offer customer support for self-hosted instances, so upgrades, backups and incidents sit with your team.
- Premium features: Features in the ee directory need a PostHog license on a self-hosted instance, so confirm which features you need before assuming the free stack covers them.
- Hosted alternative: PostHog Cloud's free plan includes the first 1 million analytics events each month, so compare the staff time of running a host against that tier.
- Single host risk: One server is one failure domain, so write down the restore steps and test them before go-live.
Before you install, answer this: what is our expected monthly event volume for the next year, and which named person restores the stack if the host fails?
A platform team that already runs Kubernetes and owns a cluster can fit PostHog into skills it already has. Scheduling, secrets, ingress, monitoring and upgrade pipelines carry over, so the learning cost centers on PostHog's own components. The fit depends on the team owning the chart, the storage and the upgrade calendar. It stops fitting when PostHog's support path does not cover the Kubernetes install you want, because the self-host documentation states that new Kubernetes deployments of its paid self-hosted product are no longer supported.
- Existing practice: GitOps, secrets management and observability patterns shorten the path to a first working install.
- Supported path: Ask PostHog in writing which Kubernetes route, if any, it supports for your edition before you design the cluster around it.
- Open-source ownership: Running the MIT-licensed stack on your cluster means the team owns upgrades, data stores, backups and incident response with no vendor support behind it.
- Volume first: Size the cluster after you know event volume, since the README points to PostHog Cloud above about 100k events per month.
- Licensing: Premium ee features still need a PostHog license on a self-hosted instance, whatever the runtime.
The first question is whether your platform standard requires a supported vendor path or accepts an unsupported open-source stack that your team operates, and PostHog's answer on Kubernetes should be confirmed in writing.
A regulated organization that needs a named supplier answering for the platform will find that self-hosted PostHog has no vendor support behind it. PostHog's self-host documentation states that self-hosted deployments are officially unsupported, so support has to come from your internal team, a managed service or a contracted implementation partner. This model fits when those responsibilities are written down before go-live and your assessors accept an internally supported platform. It stops fitting when the organization needs a vendor accountable for fixes and uptime on the running stack.
- Who answers incidents: No PostHog support exists for self-hosted instances, so define the escalation path and the party you can hold to it in the contract.
- Paid controls: SSO, audit logs, custom roles and project permissions are sold as platform packages on PostHog Cloud, and ee features need a license when self-hosted, so map each required control to a paid or open option first.
- Data location: PostHog Cloud offers US (Virginia) and EU (Frankfurt) hosting, while a self-hosted install keeps event data in your own environment, which may decide the question.
- Partner scope: A partner such as DeployOpen can plan, implement, harden, back up and support self-hosted open-source platforms in your infrastructure, and can prepare evidence for an assessment, but it does not issue audit reports or certifications. Independent auditors and certification bodies do.
- Partner status: DeployOpen is not an official PostHog partner, reseller or certified provider, so read any implementation scope as a separate contract.
The first question is whether your control and support obligations can be met by a self-hosted, unsupported stack, or whether they require PostHog Cloud or a contracted support scope agreed in writing before you start.
How much effort does self-hosting PostHog take, and can our team do it alone?
What drives the effort and cost of self-hosting PostHog?
The cost drivers are your team's hours, the server, storage, outside help and, if you choose PostHog Cloud instead, usage fees. PostHog's self-host documentation recommends a server equivalent to 4 vCPU, 16 GB of RAM and more than 30 GB of storage for its free Docker Compose hobby deployment, so the VM is a recurring cost. Storage grows with event volume and retention, so it rises over time. Your team's hours are easy to undercount because they cover installation, upgrades, backups and monitoring. Outside help is paid under a written fixed-scope quote, with setup usually one-time and a retainer recurring. On Cloud, the PostHog pricing page documents that the first 1 million analytics events each month are free, and the plan you pick sets the rate beyond that. Ask any provider for a quote that lists each component, who pays for it and which parts recur.
How long does it take to self-host PostHog?
Nothing in the documented PostHog guidance gives a fixed duration for a self-hosted install, so ask for a timeline in the written scope and check it against your own environment. The hobby deployment uses a deploy-hobby script on Docker Compose, but the time that matters is what happens after the first run. Your timeline should cover the server build, network and TLS setup, SSO if you need it, access control, backup testing, monitoring and a first upgrade rehearsal. Ask the provider which of these are in scope, which your team completes and which dependencies, such as cloud account approvals, change control or security reviews, could move the dates. Also ask how the timeline changes if you need premium features under the ee/ directory, since those require a PostHog license.
What skills does a team need to run PostHog itself?
A team running PostHog needs working Linux administration, Docker and Compose experience, and a tested routine for backups, monitoring and upgrades. On the Docker path, someone must own host OS patching, container restarts, volume storage, database backups and restore tests, plus the reverse proxy and TLS certificates. Monitoring should cover disk growth, memory use and ingestion errors so problems appear before users notice them. Upgrades mean reading PostHog's release notes, testing in a non-production copy and keeping a rollback path ready. If your team lacks one of these skills, that gap is the part to scope with an outside provider. Ask the provider to confirm in writing which of these tasks it will perform and which your staff keep.
Can a small team run self-hosted PostHog alone?
A small team can run self-hosted PostHog alone if it has the skills described above and accepts that it becomes the support path. PostHog's self-host documentation says self-hosted deployments are officially unsupported and that PostHog does not offer customer support for product, infrastructure or other questions on self-hosted instances. That means a failed upgrade, a broken ingestion pipeline or a database problem is solved by your team, using the public documentation, with no vendor obligation to fix it. Whether that is acceptable depends on how much of your product decision-making depends on the data and on how much on-call capacity your staff can sustain. If the answer is no, ask an implementation partner for a fixed-scope install plus a retainer for upgrades and support, and confirm in writing what that retainer covers.
What changes when self-hosted PostHog passes 100k events a month?
Above about 100k events a month, the decision shifts from sizing the server to choosing where PostHog runs. PostHog's README says open-source deployments should scale to approximately 100k events per month and recommends migrating to PostHog Cloud above that. If you stay self-hosted at higher volume, storage growth, backup windows, retention settings and server sizing all need a fresh review, because the 4 vCPU and 16 GB server in the docs is only a starting point. The self-host docs also say new Kubernetes deployments of the paid self-hosted product are no longer supported, which narrows the options for a larger install. Ask any provider to price both paths in the written scope, including Cloud usage fees and the engineering load of staying self-hosted.
What does a retainer cover after a PostHog install?
A retainer covers ongoing work after the install, such as support, upgrades and continuous testing, billed on a recurring basis. DeployOpen makes these available as retainers, and the exact scope is set in writing. Ask for the list of covered tasks, how requests reach the team, which upgrades are included and what counts as extra work. Because PostHog does not offer support for self-hosted instances, a retainer adds outside operational help, but it does not change PostHog's own support policy. DeployOpen does not publish a price list, so the retainer cost follows from the written scope and the environment it covers.
What should a written quote for PostHog self-hosting include?
A written quote should list the scope, deliverables, timeline and who pays for each cost component. Ask it to address these parts:
- Server and storage: who provisions them, the sizing basis and what grows over time.
- Install and configuration: SSO, access control, backups and monitoring.
- Upgrades and testing: which versions are covered, the rollback method and who runs the upgrade.
- Ongoing support: retainer scope, what is excluded and how changes are priced.
- Cloud fees, if any: what PostHog bills and what your team pays separately.
DeployOpen agrees fixed-scope engagements, deliverables and timelines in writing before work starts, and the quote follows from that scope.
How DeployOpen scopes and runs a self-hosted PostHog deployment
DeployOpen plans, implements, hardens, backs up, upgrades, documents and supports self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks. For PostHog, that work starts with choosing the deployment target (Docker, Kubernetes or virtual machines) against your edition, event volume and operating model, then putting that choice in a written scope before any build starts.
How we scope
- The written scope names the PostHog edition, the deployment target and the reason for choosing it.
- Scope covers sizing against your event volume, using PostHog's guidance of about 100k events per month for open-source deployments.
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
How we build
- Docker work starts from PostHog's self-host documentation, including the free Docker Compose hobby path and its deploy-hobby script.
- Sizing compares the host to PostHog's recommended size of 4 vCPU, 16 GB of RAM and over 30 GB of storage.
- Kubernetes plans are checked first, because PostHog no longer supports new Kubernetes deployments of its paid self-hosted product.
How we hand over
- Handover documents the deployment target, configuration, versions in use and the upgrade steps your team will run.
- Handover lists which features come from the ee directory and the PostHog license that covers their use.
- Backup and restore procedures are documented, with you confirming which data stores the backup covers.
How we support
- PostHog says self-hosted deployments are officially unsupported and that it does not offer customer support on them.
- Ongoing support, upgrades and continuous testing are available as retainers, scoped in writing.
- Testing and compliance readiness can follow the deployment, with DeployOpen preparing evidence and independent auditors issuing any attestation.

