This guide installs PostHog using the official self-hosted installer script, which deploys a Docker-based stack.
A record for your domainThese requirements are taken from the PostHog self-hosting guide.
For Docker installation, see Docker.
Create an A record that points your chosen domain to the server’s public IP address.
The official installer pulls and starts the PostHog stack for you.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/posthog/posthog/HEAD/bin/deploy-hobby)"
When the installer completes, open the URL shown in the output to finish setup.
See PostHog Configuration for configuration guidance.
See PostHog Security for hardening guidance.
Prefer automation? See PostHog Ansible Setup for an example playbook.
Prefer a Docker-focused walkthrough? See PostHog Docker Setup.
Stuck on a step or need custom configuration? We provide paid consulting for Posthog deployments, from basic setups to enterprise configurations.