Run locally
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 Launchfile
View 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
- 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:
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-04-08
Health Check
Failing
Startup Time
126s
Total Disk
11113 MB
Required Services
clickhousekafkapostgresredis
Learn More
Spec references for features used in this Launchfile.