PostHog on Railway

Self-hosted product analytics, session replay and feature flags from PostHog, on Railway.

Official site · License: MIT (except ee/ directory) · 8 Railway templates

Deploy PostHog on RailwayCompare templates

PostHog is a product analytics platform. It combines event analytics, web analytics, session replay, feature flags, experiments, surveys and error tracking in one product, and is often compared with Mixpanel, Amplitude and Google Analytics.

Teams self-host it to keep analytics data on their own infrastructure. PostHog also runs a hosted cloud service; the self-hosted hobby stack is a larger system with many components, so it is heavier than most apps on this site.

PostHog is MIT-licensed except the ee/ directory, which uses the PostHog Enterprise licence. Some bundled components have their own terms.

What PostHog can do

  • Event and product analytics
  • Web analytics
  • Session replay
  • Feature flags and experiments
  • Surveys and error tracking

What people use it for

  • Product analytics for a web or mobile app
  • Watching session replays to find usability problems
  • Rolling out features behind flags
  • Running A/B experiments

Videos

What is PostHog? (Official Demo & Tutorial) · PostHog
Complete guide to event tracking - PostHog tutorial · PostHog

Running PostHog on Railway

The Railway template deploys PostHog's self-hosted hobby stack as 23 services behind one public proxy: Django web and Celery worker, Node and Rust services, ClickHouse with ZooKeeper, Redpanda, Postgres, Redis and SeaweedFS, plus Temporal and Browserless. Secrets are generated and images are pinned to a commit build. The template notes measured about 10 GB of idle RAM, so memory across many processes drives the cost.

PostHog templates on Railway

PostHog Product Analytics SuiteMaintained by Tracklayer
Deploys PostHog's self-hosted hobby stack: product analytics, web analytics, session replay, feature flags, experiments, surveys and error tracking, as 23 Railway services behind o
14 deployments
Deploy
PostHog by an independent creator
Deploy the self-hosted version of PostHog.
187 deployments
Deploy
PostHog Reverse Proxy by an independent creator
Capture more usage data in PostHog using a reverse proxy
94 deployments
Deploy
PostHog Proxy by an independent creator
Allows you to send events to PostHog Cloud using your own domain.
37 deployments
Deploy
PostHog Caddy Reverse Proxy by an independent creator
A Caddy reverse proxy for PostHog
2 deployments
Deploy
posthog-proxy-advance by an independent creator
Deploy and Host posthog-proxy-advance with Railway
2 deployments
Deploy
OpenPanel vs PostHog by an independent creator
Lighter Mixpanel-style stack vs PostHog suite
0 deployments
Deploy
PostHog by an independent creator
Self-hosted PostHog: product analytics, replay, flags, surveys
0 deployments
Deploy

Tracklayer templates are listed first. Other PostHog templates follow, ordered by total deployments on Railway. How this works.

Deployment numbers as of 2026-11-20.

Questions about PostHog

How do I log in?

Wait until web is active; the first deploy runs migrations and takes 10 to 20 minutes. Open the proxy service's public domain and complete the signup wizard. The first account becomes the instance owner, so do it right away.

What drives the cost?

Memory across many processes. ClickHouse, Redpanda and the web workers are large consumers. The template notes measured about 10 GB of idle RAM with everything running.

Which plan do I need?

Hobby works, but Pro is recommended because Hobby limits each volume to 5 GB.

Which licence notes apply?

PostHog is MIT except ee/, whose paid features stay locked without a key. Redpanda core is BUSL-1.1 and Browserless is SSPL-1.0 or commercial, which matter for commercial use.

How do I upgrade?

PostHog publishes no versioned self-hosted releases, so images are pinned to commit builds. Pick a newer commit and update the tags listed in the template README.

Guides

Similar apps

Tracklayer maintains the templates marked as such; PostHog is a trademark of its owners and this site is not affiliated with them.