---
title: "Deploy Tianji"
description: "Website Analytics + Uptime Monitor + Server Status"
category: "Observability"
url: https://railway.com/deploy/T_-mIh
---

# Deploy Tianji

Website Analytics + Uptime Monitor + Server Status

**[Deploy Tianji on Railway](https://railway.com/template/T_-mIh)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/T_-mIh/manifest.json

- **Creator:** ISDev
- **Category:** Observability
- **Total deploys:** 57

## Template content

### Tianji https://tianji.msgbyte.com/img/logo.svg

- **Image:** moonrailgun/tianji
- **Start command:** `/bin/sh -c "echo 'Waiting for database...'; while ! nc -z ${PGHOST_PRIVATE} ${PGPORT_PRIVATE}; do sleep 1; done; pnpm start:docker:db && pnpm start"`
- **Public domain:** Yes

### Postgres https://devicons.railway.app/i/postgresql.svg

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

## Documentation

# Deploy and Host Tianji on Railway

Tianji is an all-in-one monitoring platform that combines website analytics, uptime monitoring, and server status tracking. This is a free and open source project written in TypeScript. For most users who only have lightweight needs, an All-in-One application will be more convenient and easier to use.

## About Hosting Tianji

Traditional monitoring setups often require juggling multiple specialized tools: one for server metrics, another for uptime checks, and separate solutions for user analytics. Hosting Tianji involves deploying a unified platform that consolidates these monitoring needs into a single application. Use docker to install Tianji is best way which you dont need consider about enviroment problem. The deployment process is straightforward and requires minimal configuration, making it ideal for developers who want comprehensive monitoring without managing multiple services.

## Common Use Cases

- Website performance analytics and visitor tracking as an alternative to Google Analytics
- Uptime monitoring for websites and APIs with alert notifications
- Server status monitoring with resource usage tracking (CPU, memory, disk)

## Preview

![Tianji Dashboard](https://raw.githubusercontent.com/msgbyte/tianji/master/website/static/img/preview1.png)

![Tianji Analytics](https://raw.githubusercontent.com/msgbyte/tianji/master/website/static/img/preview2.png)

![Tianji Monitoring](https://raw.githubusercontent.com/msgbyte/tianji/master/website/static/img/preview3.png)

### Dependencies for Tianji Hosting

- Tianji
- PostgreSQL database

### Deployment Dependencies

- Official Tianji Documentation: https://tianji.msgbyte.com/docs/intro
- Docker Installation Guide: https://docs.docker.com/get-docker/

The installation requires no initial configuration, though it's recommended to disable `ALLOW_REGISTER` by setting it to `false` in service variables after registering your accounts.

## Why Deploy Tianji 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 Tianji 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

- [Rootprint](https://railway.com/deploy/rootprint-1) — Open-source logs and traces with full-text search on object-storage.
- [Pyroscope profiling](https://railway.com/deploy/pyroscope-profiling) — Protected continuous profiling with durable Pyroscope storage.
- [SigOnly](https://railway.com/deploy/sigonly) — Deploy SigNoz with a working demo app & config in one click

Open this page in a browser: https://railway.com/deploy/T_-mIh
