Self-Host PostHog with Docker Compose
PostHog provides all the developer tools needed to build successful products: product analytics, event tracking, user path funnels, feature flags, and session recordings.
Minimum Hardware Requirements
version: '3.8'
services:
posthog:
image: posthog/posthog:latest
container_name: posthog
restart: unless-stopped
ports:
- "8000:8000"
environment:
- NODE_ENV=production
- TZ=UTC
volumes:
- posthog_data:/data
volumes:
posthog_data:
driver: local
docker-compose.yml and run:
docker compose up -d
VPS RAM & Server Sizing Calculator
Planning to run PostHog alone or alongside other self-hosted containers on one VPS? Toggle apps to calculate your exact RAM needs with a 25% safety buffer.
Matched Cloud VPS Tiers for Selected Workload:
Replaces Mixpanel
Commercial cloud solution with per-user monthly subscription fees.
More Analytics Apps View All →
Compare PostHog
Benchmark specs head-to-head with other open-source alternatives
Compare PostHog Side-by-Side
Select any open-source tool from the dropdown to run a hardware, memory, and popularity benchmark against PostHog.