feat: add phoenix & trigger.dev

This commit is contained in:
Sun-ZhenXing
2025-12-09 15:19:11 +08:00
parent 0b11022ef8
commit 8f30f94184
20 changed files with 1726 additions and 617 deletions

31
src/phoenix/.env.example Normal file
View File

@@ -0,0 +1,31 @@
# Phoenix version
PHOENIX_VERSION=version-12.19.0
# Timezone
TZ=UTC
# Phoenix ports
PHOENIX_PORT_OVERRIDE=6006 # UI and OTLP HTTP collector
PHOENIX_GRPC_PORT_OVERRIDE=4317 # OTLP gRPC collector
# Phoenix configuration
PHOENIX_ENABLE_PROMETHEUS=false
PHOENIX_SECRET= # Optional: Set for authentication, generate with: openssl rand -base64 32
# PostgreSQL configuration
POSTGRES_VERSION=17.2-alpine3.21
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_DB=phoenix
# Resource limits for Phoenix
PHOENIX_CPU_LIMIT=2.0
PHOENIX_MEMORY_LIMIT=2G
PHOENIX_CPU_RESERVATION=0.5
PHOENIX_MEMORY_RESERVATION=512M
# Resource limits for PostgreSQL
PHOENIX_DB_CPU_LIMIT=1.0
PHOENIX_DB_MEMORY_LIMIT=1G
PHOENIX_DB_CPU_RESERVATION=0.25
PHOENIX_DB_MEMORY_RESERVATION=256M