[{"data":1,"prerenderedAt":121},["ShallowReactive",2],{"seo-verification":3,"blog-heberger-posthog-vps-en":6},{"google":4,"bing":5},"EycwPY2XMyTkVzas3n1ygeNJFGAH513qrMjfDljzsMQ","",{"id":7,"slug":8,"title":9,"excerpt":10,"readTime":11,"views":12,"isPinned":13,"publishedAt":14,"category":15,"categories":21,"featuredImage":23,"bgImage":24,"posterImage":25,"relatedSolution":26,"intro":29,"sections":30,"ctaTitle":75,"ctaBody":76,"ctaButton":77,"ctaUrl":78,"relatedPosts":79},155,"heberger-posthog-vps","How to Host PostHog on a VPS","Deploy PostHog on your VPS: all-in-one product analytics (events, funnels, session replay, feature flags) self-hosted with Docker. Step-by-step guide.",8,0,false,"2026-01-22T00:00:00+00:00",{"id":16,"name":17,"slug":18,"color":19,"icon":20},7,"Self-hosting","self-hosting","bg-indigo-500\u002F10 text-indigo-400","cloud",[22],{"id":16,"name":17,"slug":18,"color":19,"icon":20},null,"\u002Fblog\u002Fcovers\u002Fbg.svg","\u002Fblog\u002Fcovers\u002Fheberger-posthog-vps-poster.svg",{"categorySlug":27,"appSlug":28},"analytics","analytics-posthog","PostHog is an all-in-one product analytics platform: event tracking, funnels, session replay, feature flags and A\u002FB testing in a single tool. Self-hosted on your VPS, it keeps your users' behaviour on your infrastructure, with no billing by event volume. Here is how to deploy it with Docker and the official self-host configuration.",[31,35,44,47,69,72],{"type":32,"title":33,"body":34},"h2","Why self-host PostHog on a VPS","PostHog captures very detailed, sometimes sensitive product events. The vendor's cloud bills by event volume, which becomes costly for an active application. When self-hosted, you keep the behavioural data with you, you handle large volumes for a fixed server cost, and you enable every module (replay, flags, experiments) with no paid tier.",{"type":36,"title":37,"items":38},"ul","The concrete benefits of a self-hosted PostHog",[39,40,41,42,43],"Product and session data kept on your infrastructure.","High event volume with no usage-based billing.","A complete suite: analytics, session replay, feature flags, A\u002FB testing.","Direct integration with your applications via the official SDKs.","Predictable cost, sized by the VPS resources.",{"type":32,"title":45,"body":46},"Hardware and software requirements","PostHog is the most demanding solution on this list: it ships with ClickHouse, Kafka, Redis and PostgreSQL. Count on at least 4 vCPU and 8 GB of RAM, and more in production. Plan for 30 GB of disk or more for the events. On the software side: Docker and Docker Compose, a domain name (e.g. posthog.your-domain.com) pointing to the VPS, and port 443 open.",{"type":48,"title":49,"steps":50},"steps","Deploy PostHog self-hosted with Docker",[51,54,57,60,63,66],{"title":52,"body":53},"Provision a properly sized VPS","Choose an instance of at least 4 vCPU \u002F 8 GB of RAM. Over SSH, update the system and install Docker via `curl -fsSL https:\u002F\u002Fget.docker.com | sh`.",{"title":55,"body":56},"Launch the official deployment","Follow PostHog's self-host installation script, which generates the full docker-compose (web, workers, ClickHouse, Kafka, Redis, PostgreSQL) and asks for your domain name.",{"title":58,"body":59},"Fill in the domain and the secrets","Set `SITE_URL=https:\u002F\u002Fposthog.your-domain.com` and the generated secrets. Check that DNS points correctly to the VPS before continuing, so the certificate can be issued.",{"title":61,"body":62},"Start the stack","Run `docker compose up -d` and be patient: the first start initialises several services. Follow the logs until the web service responds.",{"title":64,"body":65},"Handle TLS","The official deployment includes Caddy for automatic HTTPS. If you use your own proxy, point `posthog.your-domain.com` to the exposed web port.",{"title":67,"body":68},"Create the project and wire up an SDK","Open the URL, create the administrator account and the first project, then integrate the SDK (JS, Python…) with the provided key to start capturing events.",{"type":70,"body":71},"tip","PostHog is not designed for very small machines: under-sizing the VPS causes ClickHouse or Kafka crashes. Go big on RAM, and monitor the disk space that events consume quickly.",{"type":70,"title":73,"body":74},"The official documentation","For advanced configuration and options specific to the tool, refer to the \u003Ca href=\"https:\u002F\u002Fposthog.com\u002Fdocs\u002Fself-host\" target=\"_blank\" rel=\"noopener noreferrer\">official PostHog documentation\u003C\u002Fa>. This guide covers going live on a VPS; the vendor's documentation remains the reference for fine-tuning, major updates and specific use cases.","Deploy your instance on a ServOrbit Cloud VPS","A ServOrbit Cloud VPS with Docker preconfigured and scalable resources lets you install this tool without friction, and adjust RAM and vCPU as usage grows.","Launch my Cloud VPS","\u002Fvps-cloud",[80,92,104],{"id":81,"slug":82,"title":83,"excerpt":84,"readTime":11,"views":12,"isPinned":13,"publishedAt":85,"category":86,"categories":87,"featuredImage":23,"bgImage":24,"posterImage":89,"relatedSolution":90},154,"heberger-matomo-vps","How to Host Matomo on a VPS","Deploy Matomo on your VPS: a complete alternative to Google Analytics, with 100% ownership of your data, self-hosted with Docker and HTTPS. Step-by-step guide.","2026-01-23T00:00:00+00:00",{"id":16,"name":17,"slug":18,"color":19,"icon":20},[88],{"id":16,"name":17,"slug":18,"color":19,"icon":20},"\u002Fblog\u002Fcovers\u002Fheberger-matomo-vps-poster.svg",{"categorySlug":27,"appSlug":91},"analytics-matomo",{"id":93,"slug":94,"title":95,"excerpt":96,"readTime":11,"views":12,"isPinned":13,"publishedAt":97,"category":98,"categories":99,"featuredImage":23,"bgImage":24,"posterImage":101,"relatedSolution":102},153,"heberger-plausible-vps","How to Host Plausible Analytics on a VPS","Deploy Plausible Analytics on your VPS: lightweight, cookie-free and GDPR-compliant analytics, self-hosted with Docker, ClickHouse and HTTPS. Step-by-step guide.","2026-01-24T00:00:00+00:00",{"id":16,"name":17,"slug":18,"color":19,"icon":20},[100],{"id":16,"name":17,"slug":18,"color":19,"icon":20},"\u002Fblog\u002Fcovers\u002Fheberger-plausible-vps-poster.svg",{"categorySlug":27,"appSlug":103},"analytics-plausible",{"id":11,"slug":105,"title":106,"excerpt":107,"readTime":11,"views":108,"isPinned":13,"publishedAt":109,"category":110,"categories":116,"featuredImage":23,"bgImage":24,"posterImage":118,"relatedSolution":119},"heberger-flowise-vps","How to Host Flowise on a VPS","Deploy Flowise on your VPS to build no-code AI agents and chatbots, with Docker, a reverse proxy and SSL. Step-by-step guide.",1760,"2026-06-12T00:00:00+00:00",{"id":111,"name":112,"slug":113,"color":114,"icon":115},1,"Artificial Intelligence","intelligence-artificielle","bg-purple-500\u002F10 text-purple-400","ia",[117],{"id":111,"name":112,"slug":113,"color":114,"icon":115},"\u002Fblog\u002Fcovers\u002Fheberger-flowise-vps-poster.svg",{"categorySlug":115,"appSlug":120},"flowise",1785628445973]