-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
79 lines (76 loc) · 2.94 KB
/
render.yaml
File metadata and controls
79 lines (76 loc) · 2.94 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
projects:
- name: logfire-render-demo
environments:
- name: production
# PostgreSQL database with pgvector extension
databases:
- name: logfire-render-db
databaseName: render_qa_db
user: render_qa_user
plan: basic-1gb
region: oregon
postgresMajorVersion: "17"
# Services in the production environment
services:
# Backend API (FastAPI + Pydantic AI + Logfire)
- type: web
name: logfire-render-api
runtime: python
plan: starter
region: oregon
buildCommand: uv sync --no-dev --frozen
preDeployCommand: uv run python data/scripts/ingest_docs.py --skip-if-exists && uv run python data/scripts/add_pricing_page.py && uv run python data/scripts/add_voice_agent_page.py && uv run python data/scripts/add_autoscaling_page.py && uv run python data/scripts/add_nodejs_page.py
startCommand: uv run uvicorn backend.main:app --host 0.0.0.0 --port $PORT
healthCheckPath: /health
envVars:
# API Keys (will prompt for values on first deploy)
- key: OPENAI_API_KEY
sync: false
- key: ANTHROPIC_API_KEY
sync: false
- key: LOGFIRE_TOKEN
sync: false
- key: LOGFIRE_READ_TOKEN
sync: false
# Database connection (auto-injected from database)
- key: DATABASE_URL
fromDatabase:
name: logfire-render-db
property: connectionString
# Pipeline configuration
- key: QUALITY_THRESHOLD
value: "85"
- key: ACCURACY_THRESHOLD
value: "70"
- key: MAX_ITERATIONS
value: "1"
- key: MAX_TOKENS
value: "2000"
# RAG configuration
- key: RAG_TOP_K
value: "20"
- key: SIMILARITY_THRESHOLD
value: "0.3"
- key: VERIFICATION_THRESHOLD
value: "0.30"
# Performance settings
- key: ENABLE_CACHING
value: "true"
- key: LOG_LEVEL
value: INFO
# Frontend (Next.js Static Site)
- type: web
runtime: static
name: logfire-render-frontend
rootDir: frontend
buildCommand: rm -rf node_modules/.cache .next out && npm ci && npm run build
staticPublishPath: out
pullRequestPreviewsEnabled: true
envVars:
# API URL - full public URL of the backend service
- key: NEXT_PUBLIC_API_URL
value: https://logfire-render-api-fqx1.onrender.com
routes:
- type: rewrite
source: /*
destination: /index.html