---
title: "Deploy Latitude"
description: "Self-hosted AI agent observability with OTLP, evals, and MCP"
category: "AI/ML"
url: https://railway.com/deploy/latitude-1
---

# Deploy Latitude

Self-hosted AI agent observability with OTLP, evals, and MCP

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

- **Creator:** Tom
- **Category:** AI/ML
- **Total deploys:** 21

## Template content

### migrations https://raw.githubusercontent.com/latitude-dev/latitude-llm/b7231ef72b91dba788bfd556d7ceedb6f77ff28e/apps/design-system/public/latitude-logo-mark-dark.svg

- **Image:** latitudedata/migrations:0.3.80@sha256:f5ab51ccc9c8afa359e781ec3f4ae412598e174347f73f48fd123c0faf6f6ab1

### api https://raw.githubusercontent.com/latitude-dev/latitude-llm/b7231ef72b91dba788bfd556d7ceedb6f77ff28e/apps/design-system/public/latitude-logo-mark-dark.svg

- **Image:** latitudedata/api:0.3.80@sha256:b6c4571d75cb1176e4ae556cdde9c7f65cd42a50d72073fd900fabe71f6982e3
- **Health check:** /health
- **Public domain:** Yes

### clickhouse https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/clickhouse.svg

- **Source:** monotykamary/railway-template-latitude
- **Health check:** /ping

### web https://raw.githubusercontent.com/latitude-dev/latitude-llm/b7231ef72b91dba788bfd556d7ceedb6f77ff28e/apps/design-system/public/latitude-logo-mark-dark.svg

- **Image:** latitudedata/web:0.3.80@sha256:8df32d3808513d8e990f178493d1e5116f8241083503ab75b50bd7d6cec22d40
- **Health check:** /api/health
- **Public domain:** Yes

### ingest https://raw.githubusercontent.com/latitude-dev/latitude-llm/b7231ef72b91dba788bfd556d7ceedb6f77ff28e/apps/design-system/public/latitude-logo-mark-dark.svg

- **Image:** latitudedata/ingest:0.3.80@sha256:47acfeda795b98ef10896479215279de8c03bc2b9ae17266371bff589c50bf68
- **Health check:** /health
- **Public domain:** Yes

### workflows https://raw.githubusercontent.com/latitude-dev/latitude-llm/b7231ef72b91dba788bfd556d7ceedb6f77ff28e/apps/design-system/public/latitude-logo-mark-dark.svg

- **Image:** latitudedata/workflows:0.3.80@sha256:0bceea0ed1aa4e6692dd9bacf5ee936cffc9b921a2739e44bca5461a233c320c
- **Health check:** /health

### redis https://devicons.railway.app/i/redis.svg

- **Image:** redis:7.4.7-alpine@sha256:02f2cc4882f8bf87c79a220ac958f58c700bdec0dfb9b9ea61b62fb0e8f1bfcf
- **Start command:** `/bin/sh -c 'exec redis-server --maxmemory-policy noeviction --appendonly yes --save 3600 1 --save 300 100'`

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

- **Source:** monotykamary/railway-template-latitude

### workers https://raw.githubusercontent.com/latitude-dev/latitude-llm/b7231ef72b91dba788bfd556d7ceedb6f77ff28e/apps/design-system/public/latitude-logo-mark-dark.svg

- **Image:** latitudedata/workers:0.3.80@sha256:4251219eddd37c4552e45039d8187765911c3cb7eefbd16113e02c50f4c381b1
- **Health check:** /health

### temporal https://raw.githubusercontent.com/temporalio/ui/f30ce6f0211bd3985d0b37b7d1c3fdf27f5c9e92/src/lib/vendor/logo.svg

- **Image:** temporalio/auto-setup:1.27.2@sha256:b44cbfeb43dbeae42db113b44fb8414c3452f05643b3d6b1592f955277d73526

## Buckets

- **latitude-storage**

## Documentation

# Deploy and Host Latitude on Railway

Deploy Latitude `v0.3.80`, an open-source observability platform for AI agents and LLM applications. Capture OpenTelemetry traces, inspect sessions and tool calls, evaluate output quality, and use the API or MCP server from a complete Railway-hosted stack.

## About Hosting Latitude

This template deploys the six matching Latitude `0.3.80` application images: the web UI, public API and MCP server, OTLP ingest, BullMQ workers, Temporal workflow workers, and a one-shot migrations job. PostgreSQL with pgvector, ClickHouse, Redis, Temporal, and a Railway object-storage bucket provide the backing infrastructure.

The `web`, `api`, and `ingest` services each own a Railway HTTPS domain. PostgreSQL, ClickHouse, Redis, and Temporal remain private. Secrets and infrastructure passwords are generated per deployment and wired through service references.

A working email transport is required for magic-link sign-in. Configure authenticated SMTP (including SendGrid SMTP) or Mailgun on the `web` service, redeploy the application services, then open the `web` domain, register, follow the emailed link, and create the first organization.

## Common Use Cases

- Observe production AI-agent traces, sessions, tool calls, latency, and token usage.
- Ingest OpenTelemetry from TypeScript, Python, and other compatible runtimes.
- Evaluate LLM output and track regressions against human-aligned criteria.
- Search and inspect traces from the web UI, public API, CLI, or MCP clients.
- Operate a self-hosted Latitude installation with deliberate, pinned upgrades.

## Dependencies for Latitude Hosting

- PostgreSQL 16 with pgvector for users, projects, configuration, and metadata.
- ClickHouse for span and telemetry analytics.
- Redis for caching, locks, rate limits, and durable BullMQ queues.
- Temporal for durable workflows.
- Railway object storage for shared ingest payloads, datasets, and exports.
- An external authenticated SMTP or Mailgun account for production login email.
- Optional AI-provider accounts for generation, embeddings, and reranking features.

### Deployment Dependencies

- [Latitude v0.3.80 source](https://github.com/latitude-dev/latitude-llm/tree/9606fe4191417f0a0cce45bfe25e3c2d83c06c9e)
- [Self-hosting guide](https://docs.latitude.so/deployment/single-host)
- [Configuration reference](https://docs.latitude.so/deployment/configuration)
- [Official service images](https://hub.docker.com/u/latitudedata)
- [Railway template source and maintenance notes](https://github.com/monotykamary/railway-template-latitude)

### Implementation Details

The template pins all six Latitude services to the same stable release and immutable OCI digests. `v0.3.80` is used because its release workflow published a complete matching service set; `v0.3.79` and `v0.3.81` are deliberately skipped because their cancelled image workflows left the `web` image unpublished.

The PostgreSQL and ClickHouse services use small, auditable adapters from the template repository to install the upstream initialization and storage-policy files. A Railway bucket replaces the bundled single-node SeaweedFS service. One persistent Redis service supplies both Redis roles supported by Latitude and runs with AOF plus `noeviction` for queue durability.

Daily backups are configured for PostgreSQL, ClickHouse, and Redis volumes. The bucket provides shared object storage across independently deployed services. Cross-service variables are generated and referenced automatically; do not replace them with public hosts or duplicate passwords.

Core trace ingestion and viewing work without AI credentials. AI-assisted features remain unavailable until supported provider credentials and model selections are configured. This is a resource-intensive, single-instance stateful deployment rather than a high-availability cluster.

### Why Deploy Latitude on Railway?

Railway provides HTTPS routing, private service networking, persistent volumes, object storage, generated secrets, health checks, and coordinated deployment for Latitude's application and data services. The template removes manual Compose networking while retaining the upstream service boundaries and deliberate version pinning.


## Similar templates

- [Chat Chat](https://railway.com/deploy/-WWW5r) — Chat Chat, your own unified chat and search to AI platform.
- [stella](https://railway.com/deploy/stella) — Self-host stella with web, API, Postgres, Redis, and object storage.
- [Hermes Agent | OpenClaw Alternative with Dashboard](https://railway.com/deploy/hermes-agent-or-openclaw-alternative-wit) — Self-Hosted Hermes AI Agent for Telegram, Discord & Slack

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