style: lint code
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
# Compose Profiles
|
||||
# Toggle between 'sqlite' (default) and 'postgres' (or 'pg')
|
||||
COMPOSE_PROFILES=sqlite
|
||||
|
||||
# Phoenix version
|
||||
PHOENIX_VERSION=12.31.2-nonroot
|
||||
PHOENIX_VERSION=12.35.0-nonroot
|
||||
|
||||
# Timezone
|
||||
TZ=UTC
|
||||
|
||||
@@ -32,7 +32,7 @@ This project supports two modes of operation via Docker Compose profiles:
|
||||
| Variable Name | Description | Default Value |
|
||||
| -------------------------------- | ---------------------------------------- | ----------------- |
|
||||
| COMPOSE_PROFILES | Active profiles (`sqlite` or `postgres`) | `sqlite` |
|
||||
| PHOENIX_VERSION | Phoenix image version | `12.31.2-nonroot` |
|
||||
| PHOENIX_VERSION | Phoenix image version | `12.35.0-nonroot` |
|
||||
| PHOENIX_PORT_OVERRIDE | Host port for Phoenix UI and HTTP API | `6006` |
|
||||
| PHOENIX_GRPC_PORT_OVERRIDE | Host port for OTLP gRPC collector | `4317` |
|
||||
| PHOENIX_PROMETHEUS_PORT_OVERRIDE | Host port for Prometheus metrics | `9090` |
|
||||
|
||||
@@ -32,7 +32,7 @@ Arize Phoenix 是一个开源的 AI 可观测性平台,专为 LLM 应用设计
|
||||
| 变量名 | 描述 | 默认值 |
|
||||
| -------------------------------- | ---------------------------------------- | ----------------- |
|
||||
| COMPOSE_PROFILES | 激活的配置文件(`sqlite` 或 `postgres`) | `sqlite` |
|
||||
| PHOENIX_VERSION | Phoenix 镜像版本 | `12.31.2-nonroot` |
|
||||
| PHOENIX_VERSION | Phoenix 镜像版本 | `12.35.0-nonroot` |
|
||||
| PHOENIX_PORT_OVERRIDE | Phoenix UI 和 HTTP API 的主机端口 | `6006` |
|
||||
| PHOENIX_GRPC_PORT_OVERRIDE | OTLP gRPC 采集器的主机端口 | `4317` |
|
||||
| PHOENIX_PROMETHEUS_PORT_OVERRIDE | Prometheus 指标的主机端口 | `9090` |
|
||||
|
||||
@@ -7,27 +7,26 @@ x-defaults: &defaults
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: 100m
|
||||
max-file: "3"
|
||||
max-file: '3'
|
||||
|
||||
x-phoenix-common: &phoenix-common
|
||||
<<: *defaults
|
||||
image: ${GLOBAL_REGISTRY:-}arizephoenix/phoenix:${PHOENIX_VERSION:-12.31.2-nonroot}
|
||||
image: ${GLOBAL_REGISTRY:-}arizephoenix/phoenix:${PHOENIX_VERSION:-12.35.0-nonroot}
|
||||
ports:
|
||||
- "${PHOENIX_PORT_OVERRIDE:-6006}:6006" # UI and OTLP HTTP collector
|
||||
- "${PHOENIX_GRPC_PORT_OVERRIDE:-4317}:4317" # OTLP gRPC collector
|
||||
- "${PHOENIX_PROMETHEUS_PORT_OVERRIDE:-9090}:9090" # Prometheus metrics
|
||||
- '${PHOENIX_PORT_OVERRIDE:-6006}:6006' # UI and OTLP HTTP collector
|
||||
- '${PHOENIX_GRPC_PORT_OVERRIDE:-4317}:4317' # OTLP gRPC collector
|
||||
- '${PHOENIX_PROMETHEUS_PORT_OVERRIDE:-9090}:9090' # Prometheus metrics
|
||||
environment:
|
||||
- TZ=${TZ:-UTC}
|
||||
- PHOENIX_ENABLE_PROMETHEUS=${PHOENIX_ENABLE_PROMETHEUS:-false}
|
||||
- PHOENIX_SECRET=${PHOENIX_SECRET:-}
|
||||
healthcheck:
|
||||
test:
|
||||
[
|
||||
"CMD",
|
||||
"python3",
|
||||
"-c",
|
||||
"import httpx;r=httpx.get('http://localhost:6006/healthz').raise_for_status()",
|
||||
]
|
||||
- CMD
|
||||
- python3
|
||||
- -c
|
||||
- "import httpx;r=httpx.get('http://localhost:6006/healthz').raise_for_status()"
|
||||
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
@@ -59,7 +58,7 @@ services:
|
||||
# PostgreSQL configuration
|
||||
phoenix-pg:
|
||||
<<: *phoenix-common
|
||||
profiles: ["postgres", "pg"]
|
||||
profiles: [postgres, pg]
|
||||
environment:
|
||||
- TZ=${TZ:-UTC}
|
||||
- PHOENIX_ENABLE_PROMETHEUS=${PHOENIX_ENABLE_PROMETHEUS:-false}
|
||||
@@ -71,7 +70,7 @@ services:
|
||||
|
||||
phoenix-db:
|
||||
<<: *defaults
|
||||
profiles: ["postgres", "pg"]
|
||||
profiles: [postgres, pg]
|
||||
image: ${GLOBAL_REGISTRY:-}postgres:${POSTGRES_VERSION:-17.2-alpine3.21}
|
||||
environment:
|
||||
- TZ=${TZ:-UTC}
|
||||
@@ -81,7 +80,7 @@ services:
|
||||
volumes:
|
||||
- phoenix_db_data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-postgres}"]
|
||||
test: [CMD-SHELL, 'pg_isready -U ${POSTGRES_USER:-postgres}']
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
Reference in New Issue
Block a user