Deploy PostHog on Northflank

Published 14th April 2025

PostHog is an open-source product analytics platform designed to help teams build better products by offering deep insights into user behaviour. Unlike traditional analytics tools that often rely on event tracking alone, PostHog provides a suite of features—including session replays, feature flags, heatmaps, A/B testing, and user funnels—all within a single platform.

You can self-host PostHog on Northflank or bring your own cloud for full data control and privacy, especially appealing for companies with strict compliance needs. PostHog emphasizes developer-friendliness, offering rich integrations and powerful APIs to customize data collection and experimentation workflows, enabling rapid iteration and data-driven decision-making.

Stack

  • 16 services to deploy PostHog components
  • 4 addons; a PostgreSQL database, MinIO object storage, and two Redis message brokers
  • 3 volumes to persist data for ClickHouse, Kafka, and ZooKeeper
  • 4 jobs to initialise databases, storage, and run migrations

Getting Started

  1. Create an account on Northflank
  2. Click deploy PostHog now
  3. Click deploy stack to save and run the PostHog template
  4. Select the posthog-web service when the template run has finished
  5. When the service has finished deploying, open the code.run domain in the service header to access PostHog and begin configuring and using it!

Notes

  • PostHog do not provide support for self-hosted deployments
  • Changing the PostHog version may affect PostHog features
Share this template with your network
X