Deploy PostHog
Deploy the self-hosted version of PostHog.
Plugins
Just deployed
Just deployed
/data
Property Defs Rs
Just deployed
Just deployed
Just deployed
/var/lib/clickhouse
ZooKeeper
Just deployed
/data
Replay Capture
Just deployed
Just deployed
Redis v6
Just deployed
/data
Temporal Django Worker
ecom-labs-hq/posthog-railway-template/temporal-django-worker:latest
Just deployed
Cyclotron Janitor
Just deployed
Just deployed
Worker
Just deployed
Just deployed
/var/lib/postgresql/data
Just deployed
/bitnami/kafka
Livestream
Just deployed
Redis v7
Just deployed
/data
Just deployed
Deploy and Host PostHog on Railway
PostHog is an open-source analytics platform built for product teams that want full control over their data. It provides powerful tools for product analytics, session recording, feature flags, A/B testing, and event pipelines—without needing to send your data to third-party SaaS tools.
About Hosting PostHog
Hosting PostHog yourself means owning your data, reducing vendor lock-in, and avoiding usage-based pricing surprises. Traditionally, setting up PostHog involves running a complex install script, configuring multiple services manually, and managing infrastructure updates.
This template simplifies the entire process by provisioning everything needed to run PostHog on Railway, with just a few clicks. It’s containerized, portable, and production-ready—making it a seamless way to self-host with minimal DevOps overhead.
Common Use Cases
- Product analytics with full data ownership
- Privacy-focused event tracking for compliance-conscious teams
- Customizable analytics infrastructure for startups and enterprises
Dependencies for PostHog Hosting
- PostgreSQL
- Redis (v6 and v7)
- Kafka & ZooKeeper
- ClickHouse
- MinIO
- Temporal
- PostHog Worker & Dashboard
- Plugins & Feature Flags
- Session Replay & Capture services
Deployment Dependencies
Everything is included and pre-configured in this Railway template — no manual setup required.
Why Deploy PostHog on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying PostHog on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content
Plugins
posthog/posthog:latestProperty Defs Rs
ghcr.io/posthog/posthog/property-defs-rs:masterZooKeeper
zookeeper:3.7.0Replay Capture
ghcr.io/posthog/posthog/capture:masterRedis v6
redis:6.2.7-alpineTemporal Django Worker
ghcr.io/ecom-labs-hq/posthog-railway-template/temporal-django-worker:latestCyclotron Janitor
ghcr.io/posthog/posthog/cyclotron-janitor:masterWorker
posthog/posthog:latestLivestream
ghcr.io/posthog/livestream:mainRedis v7
redis:7.2-alpine
