---
title: "Deploy Arize Phoenix"
description: "Open-source LLM tracing, evals and observability, backed by Postgres"
category: "Observability"
url: https://railway.com/deploy/arize-phoenix-1
---

# Deploy Arize Phoenix

Open-source LLM tracing, evals and observability, backed by Postgres

**[Deploy Arize Phoenix on Railway](https://railway.com/template/arize-phoenix-1)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/arize-phoenix-1/manifest.json

- **Creator:** Protemplate
- **Category:** Observability
- **Total deploys:** 1

## Template content

### Phoenix https://avatars.githubusercontent.com/u/104656199?v=4

- **Image:** arizephoenix/phoenix:version-20.9.0
- **Health check:** /healthz
- **Public domain:** Yes

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

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

## Documentation

# Deploy and Host Phoenix on Railway

Phoenix is an open-source observability platform for LLM applications. It collects OpenTelemetry traces, runs evals, and gives you a UI to inspect prompts, retrieval, tool calls, and latency, without sending data to a third-party SaaS.

## About Hosting Phoenix

Hosting Phoenix means running the tracing UI next to PostgreSQL so traces survive redeploys. This template pins `arizephoenix/phoenix:version-20.9.0`. The official Docker image is distroless: there is no shell, so this template does not wrap a custom entrypoint. Phoenix reads `PHOENIX_PORT` (not only Railway's `PORT`), and a Kubernetes-style `tcp://` value will crash startup. This template pins both `PORT` and `PHOENIX_PORT` to `6006`, binds `PHOENIX_HOST=::` for dual-stack healthchecks, stores data in Postgres, enables auth, and exposes OTLP/HTTP on 6006 plus a TCP proxy for gRPC on 4317.

## Common Use Cases

- **LLM tracing**: inspect prompts, completions, retrieval, and tool calls in one UI
- **Evals**: score outputs and catch regressions before they ship
- **OpenTelemetry collector**: accept OTLP/HTTP (`/v1/traces`) and OTLP/gRPC (4317)
- **Playground**: iterate on prompts against your own traces
- **Self-hosted alternative to Langfuse SaaS**: keep traces in your Railway project

## Dependencies for Phoenix Hosting

- **PostgreSQL 14+**: production storage (included). SQLite is ephemeral on Railway.
- **No LLM key required to boot**: add provider keys later for evals/playground
- **OpenTelemetry in your app**: send spans after deploy

### Deployment Dependencies

- [Phoenix Docker docs](https://arize.com/docs/phoenix/self-hosting/deployment-options/docker)
- [Phoenix configuration](https://arize.com/docs/phoenix/self-hosting/configuration)
- [Phoenix GitHub repository](https://github.com/Arize-ai/phoenix)

### Implementation Details

```env
PORT=6006
PHOENIX_PORT=6006
PHOENIX_HOST=::
PHOENIX_SQL_DATABASE_URL=${{Postgres.DATABASE_PRIVATE_URL}}
PHOENIX_ENABLE_AUTH=true
PHOENIX_SECRET=${{secret(64,"abcdef0123456789")}}
PHOENIX_USE_SECURE_COOKIES=true
```

`PHOENIX_SECRET` must be at least 32 characters with one digit and one lowercase letter. This template generates a 64-character hex secret, which always satisfies the validator. First UI login is `admin@localhost` / `admin`; Phoenix requires a password change. Create a system API key under Settings, then send OTLP/protobuf traces to `https:///v1/traces` with `Authorization: Bearer ` (or use the generated TCP proxy on 4317 for gRPC). The `/v1/traces` endpoint accepts protobuf, not JSON.

## Why Deploy Phoenix 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 Phoenix on Railway, you get a pre-configured tracing stack with Postgres, generated secrets, health checks, managed SSL, and private networking to your application services.


## Similar templates

- [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
- [Unwrapped Spotify Music Stats](https://railway.com/deploy/wide-bold) — Unwrapped Spotify Music Stats, Estatísticas de músicas disponíveis

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