PostHog on Railway
Self-hosted product analytics, session replay and feature flags from PostHog, on Railway.
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
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
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.