Skip to content
esc
Type to search the docs
Back to catalog

Posthog

Tested

Open-source product analytics, session replay, and feature flags

Set up on Launchfile

Choose your app settings, save them to your workspace, then launch on Launchfile hosting. Checking settings does not start a subscription or charge you.

This step saves your selection. It does not launch an app or start a subscription.

Run locally

Tested and verified to launch successfully.

Terminal
$ npx launchfile up posthog

Requires Docker Desktop. No source code needed — pulls pre-built images and starts Posthog with all dependencies.

Image:posthog/posthog:latest
LaunchfileView on GitHub
# yaml-language-server: $schema=https://launchfile.dev/schema/v1
version: launch/v1
name: posthog
description: "Open-source product analytics, session replay, and feature flags"
repository: https://github.com/PostHog/posthog
logo: https://raw.githubusercontent.com/PostHog/posthog.com/master/contents/images/post-hog-logo.svg

image: posthog/posthog:latest
provides:
  - protocol: http
    port: 8000
    exposed: true
requires:
  - type: postgres
    set_env:
      DATABASE_URL: $url
  - type: redis
    set_env:
      REDIS_URL: $url
  - type: clickhouse
    set_env:
      CLICKHOUSE_HOST: $host
      CLICKHOUSE_DATABASE: $name
      CLICKHOUSE_SECURE: "false"
  - type: kafka
    set_env:
      KAFKA_HOSTS: $url
env:
  SECRET_KEY:
    generator: secret
    sensitive: true
    description: "Django secret key for session signing and CSRF"
  SITE_URL:
    default: $app.url
    required: true
    description: "Public-facing URL of the PostHog instance"
  IS_BEHIND_PROXY:
    default: "true"
    description: "Set to true when running behind a reverse proxy"
  DISABLE_SECURE_SSL_REDIRECT:
    default: "true"
    description: "Disable forced SSL redirect (handled by proxy)"
health:
  path: /_health
  start_period: 300s
  interval: 10s
  timeout: 5s
  retries: 30
restart: always

Test Results

Last Tested

2026-09-12

Health Check

Failing

Startup Time

127s

Total Disk

3070 MB

Required Services

clickhousekafkapostgresredis

Learn More

Spec references for features used in this Launchfile.

Related Apps