---
title: "Deploy talivia"
description: "Revenue-first analytics with session replay and attribution"
category: "Other"
url: https://railway.com/deploy/talivia
---

# Deploy talivia

Revenue-first analytics with session replay and attribution

**[Deploy talivia on Railway](https://railway.com/template/talivia)**

- **Creator:** kmaki's Projects
- **Category:** Other

## Template content

### postgres

- **Image:** postgres:17.6-alpine

### app

- **Image:** xiaosong233/talivia-railway:latest
- **Health check:** /api/heartbeat
- **Public domain:** Yes

## Documentation

# Deploy and Host Talivia on Railway

## About Hosting Talivia on Railway
Talivia runs as a Dockerized Next.js web application on Railway with a private, persistent PostgreSQL database and automatic HTTPS.

## Tech Stack
- Next.js 16 and React
- Node.js 22
- Prisma ORM
- PostgreSQL 17
- Docker

## Why Deploy Talivia on Railway
Railway provides one-click container deployment, private service networking, managed persistent volumes, automatic HTTPS, health checks, and simple secret generation.

## Common Use Cases
Use Talivia for privacy-friendly web analytics, session replay, revenue attribution, shared dashboards, and payment revenue tracking across Stripe, LemonSqueezy, Polar, Dodo, Yolfi, or manual payments.

## Deployment Notes
The app listens on port 3000 and exposes /api/heartbeat for health checks. PostgreSQL is private and stores data in /var/lib/postgresql/data; PGDATA points to a clean subdirectory required for Railway volumes. The app applies Prisma migrations automatically. Sign in initially with username admin and password admin, then change that bootstrap password immediately in Settings > Account. APP_SECRET and the database password are generated automatically. COINGECKO_API_KEY is optional and may remain empty.

## Dependencies for Talivia on Railway
Talivia requires PostgreSQL over Railway private networking. No public database domain is created.

### Deployment Dependencies

| Service | Image | Port | Volume |
|---------|-------|------|--------|
| app | xiaosong233/talivia-railway:latest | 3000 | - |
| postgres | postgres:17.6-alpine | 5432 | /var/lib/postgresql/data |

## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — [Jul'26] Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — A Self-Hosted & Modern Roleplaying Platform
- [Letta Code Remote](https://railway.com/deploy/letta-code-remote) — Run a Letta Code agent 24/7. No inbound ports, just deploy.

Open this page in a browser: https://railway.com/deploy/talivia
