---
title: "Deploy OpenPanel"
description: "Open-source analytics platform for web and mobile apps"
category: "Analytics"
url: https://railway.com/deploy/openpanel-1
---

# Deploy OpenPanel

Open-source analytics platform for web and mobile apps

**[Deploy OpenPanel on Railway](https://railway.com/template/openpanel-1)**

- **Creator:** Schier.co
- **Category:** Analytics
- **Total deploys:** 44

## Template content

### op-api https://assets.yaak.app/uploads/op-tWGHM_500x500.png

- **Image:** lindesvard/openpanel-api:2.2

### op-worker https://assets.yaak.app/uploads/op-tWGHM_500x500.png

- **Image:** lindesvard/openpanel-worker:2.2

### op-redis https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg

- **Image:** redis:8.2.1
- **Start command:** `/bin/sh -c "rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH"`

### op-proxy https://caddyserver.com/resources/images/open-graph-square.png?v=9134717

- **Image:** caddy:2-alpine
- **Start command:** `sh -c 'echo "$CADDYFILE" > /etc/caddy/Caddyfile && caddy run --config /etc/caddy/Caddyfile'`
- **Health check:** /healthcheck
- **Public domain:** Yes

### op-clickhouse https://devicons.railway.app/ClickHouse?variant=light

- **Image:** clickhouse/clickhouse-server:25.12
- **Health check:** /ping

### op-dashboard https://assets.yaak.app/uploads/op-tWGHM_500x500.png

- **Image:** lindesvard/openpanel-dashboard:2.2

### op-postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:17

## Documentation

# Deploy and Host OpenPanel on Railway

Deploy OpenPanel with zero configuration.

OpenPanel is an open-source web and product analytics platform that combines the power of Mixpanel with the ease of Plausible, making it one of the best Google Analytics replacements.

## About Hosting OpenPanel

OpenPanel is made up of several services working together, including an API, dashboard, worker, and multiple data stores.

Running this yourself normally means setting up PostgreSQL, ClickHouse, Redis, background workers, networking, and storage. This template handles all of that automatically.

All required services are provisioned and connected for you. No configuration is required. Just deploy and start sending events.

A Caddy reverse proxy is included so the dashboard and API are served from a single domain. This allows authentication and cookies to work correctly without needing custom domain setup.

## Common Use Cases

- Product analytics for web and apps
- Funnel, retention, and event analysis
- Self-hosted analytics for privacy and control

## Dependencies for OpenPanel Hosting

- PostgreSQL for application data
- ClickHouse for analytics data
- Redis for caching and queues
- Caddy reverse proxy for routing

### Deployment Dependencies

- [OpenPanel official website](https://openpanel.dev)

### Implementation Details

Optional Environment Variables:

Email configuration:
- `EMAIL_SENDER` Sender address for notifications
- `RESEND_API_KEY` API key for sending email via Resend

Access control:
- `ALLOW_INVITATION` Allow users to invite others
- `ALLOW_REGISTRATION` Allow new registrations after the first user

All core functionality works without additional configuration.

## Why Deploy OpenPanel 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 OpenPanel 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.

## Similar templates

- [Betterlytics](https://railway.com/deploy/betterlytics) — Betterlytics is a cookieless analytics platform GDPR-compliant.
- [Finance Tracker](https://railway.com/deploy/finance-tracker-1) — Private multi-user household finance ledger with budgets and CSV import.
- [Matomo Analytics + MariaDB](https://railway.com/deploy/matomo-analytics-mariadb) — Privacy-friendly analytics with MariaDB and persistent volumes.

Open this page in a browser: https://railway.com/deploy/openpanel-1
