This guide uses the official PostHog self-hosted deployment for a single server.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/posthog/posthog/master/bin/deploy-hobby)"
The script prompts for a deployment type, release tag, and domain or IP, then generates a Docker Compose stack.
If the script doesn’t start containers automatically, run:
docker compose up -d
Open the PostHog URL in your browser and create the admin account. The first project is created during onboarding.
Re-run the deploy script to update the stack or adjust configuration, then restart the containers.
Check the PostHog self-hosting documentation or reach out via our contact page.