Deploy Phoenix in a containerized environment using Docker or Docker Compose.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Arize-ai/phoenix/llms.txt
Use this file to discover all available pages before exploring further.
Quick Start with Docker
Run Phoenix as a standalone container:http://localhost:6006
Docker Compose Deployment
For production deployments, use Docker Compose with PostgreSQL for persistence.docker-compose.yml
Start the Services
Building from Source
Build the Phoenix image from the Dockerfile:Multi-Stage Build
The Dockerfile uses a multi-stage build process:- Frontend Builder: Builds the React application using Node.js and pnpm
- Backend Builder: Packages the Python application with uv
- Production Image: Distroless Python image for minimal attack surface
Environment Variables
Configure Phoenix using environment variables:Database connection URL. Use PostgreSQL for production:
Enable authentication and authorization
Secret key for JWT signing (min 32 characters, alphanumeric with digits)
Port for the Phoenix web UI and HTTP API
Port for the OpenTelemetry gRPC collector
Persistence
PostgreSQL (Recommended)
Use PostgreSQL with a named volume for production:SQLite (Development Only)
For development, mount a volume for SQLite:Exposed Ports
The Phoenix container exposes three ports:- 6006: Phoenix web UI and HTTP API
- 4317: OpenTelemetry gRPC endpoint for trace ingestion
- 9090: Prometheus metrics (when enabled)
Health Checks
Phoenix provides health check endpoints:/healthz: Liveness probe/readyz: Readiness probe
ARM64 Support
For ARM64 platforms (Apple Silicon, Raspberry Pi), use the ARM64 base image:Troubleshooting
Container Fails to Start
Check logs for errors:Database Connection Issues
Verify PostgreSQL is accessible:Permission Issues
The container runs as non-root user (UID 65532). Ensure volumes have correct permissions:Next Steps
Configuration
Configure environment variables and settings
Security
Set up authentication and encryption
Kubernetes
Deploy with Kubernetes and Helm