PostHog

Deploy the self-hosted version of PostHog.

Deploy PostHog

Plugins

posthog/posthog:latest

Just deployed

Minio

minio/minio:RELEASE.2025-02-18T16-25-55Z

Just deployed

/data

Property Defs Rs

posthog/posthog/property-defs-rs:master

Just deployed

Temporal

ecom-labs-hq/posthog-railway-template/temporal:latest

Just deployed

ClickHouse

ecom-labs-hq/posthog-railway-template/clickhouse:latest

Just deployed

/var/lib/clickhouse

ZooKeeper

bitnami/zookeeper:3.7.0

Just deployed

/bitnami/zookeeper

Replay Capture

posthog/posthog/capture:master

Just deployed

Feature Flags

ecom-labs-hq/posthog-railway-template/feature-flags:latest

Just deployed

Redis v6

redis:6.2.7-alpine

Just deployed

/data

Temporal Django Worker

ecom-labs-hq/posthog-railway-template/temporal-django-worker:latest

Just deployed

Cyclotron Janitor

posthog/posthog/cyclotron-janitor:master

Just deployed

Dashboard

ecom-labs-hq/posthog-railway-template/web:latest

Just deployed

Cyclotron Fetch

posthog/posthog/cyclotron-fetch:master

Just deployed

Worker

posthog/posthog:latest

Just deployed

Postgres

postgres:12-alpine

Just deployed

/var/lib/postgresql/data

Kafka

bitnami/kafka:3.8.1

Just deployed

/bitnami/kafka

Livestream

posthog/livestream:main

Just deployed

Redis v7

redis:7.2-alpine

Just deployed

/data

Capture

posthog/posthog/capture:master

Just deployed

posthoglogo

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

More templates in this category

View Template
Bugsink
Self-hosted Error Tracking. Sentry-SDK compatible

View Template
Litlyx
Modern, developer-friendly, cookiefree analytics tool. Alternative to Umami

View Template
Superset
An open-source modern data exploration and visualization platform.