-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yaml
More file actions
28 lines (28 loc) · 807 Bytes
/
compose.yaml
File metadata and controls
28 lines (28 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
services:
phoenix:
image: arizephoenix/phoenix:latest
ports:
- "6006:6006" # UI and OTLP HTTP collector
- "4317:4317" # OTLP gRPC collector
backend:
build:
context: ./server
dockerfile: Dockerfile
args:
OPENAI_API_KEY: ${OPENAI_API_KEY}
ports:
- "8000:8000"
env_file:
- ./server/.env
environment:
- OPENAI_API_KEY=${OPENAI_API_KEY}
- COLLECTOR_ENDPOINT=http://phoenix:6006/v1/traces
- PHOENIX_HOST=http://phoenix:6006
- PROD_CORS_ORIGIN=http://localhost:3000
# Set INSTRUMENT_LLAMA_INDEX=false to disable instrumentation
- INSTRUMENT_LLAMA_INDEX=true
healthcheck:
test: ["CMD", "wget", "--spider", "http://0.0.0.0:8000/health"]
interval: 5s
timeout: 1s
retries: 5