-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
120 lines (106 loc) · 3.9 KB
/
render.yaml
File metadata and controls
120 lines (106 loc) · 3.9 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
projects:
- name: render-data-agent-example
environments:
- name: production
databases:
# PostgreSQL Database
- name: icp-analysis-db
databaseName: render_data
plan: free
region: oregon
ipAllowList: [] # Allow connections from all Render services
services:
# FastAPI Backend API
- type: web
name: icp-analysis-api
runtime: docker
plan: starter
region: oregon
# Use the backend Dockerfile
dockerfilePath: ./Dockerfile
# Run database migrations before starting the app
preDeployCommand: "uv run python migrate.py"
# Environment variables for the FastAPI backend
envVars:
# Database configuration (connects to the database above)
- key: POSTGRES_HOST
fromDatabase:
name: icp-analysis-db
property: host
- key: POSTGRES_PORT
fromDatabase:
name: icp-analysis-db
property: port
- key: POSTGRES_DB
fromDatabase:
name: icp-analysis-db
property: database
- key: POSTGRES_USER
fromDatabase:
name: icp-analysis-db
property: user
- key: POSTGRES_PASSWORD
fromDatabase:
name: icp-analysis-db
property: password
- key: DATABASE_URL
fromDatabase:
name: icp-analysis-db
property: connectionString
# LLM API Configuration
- key: OPENAI_API_KEY
sync: false
- key: ANTHROPIC_API_KEY
sync: false
- key: LLM_PROVIDER
value: openai
- key: LLM_MODEL
value: gpt-4-turbo-preview
# App Configuration
- key: APP_TITLE
value: ICP Analysis Dashboard
- key: MAX_UPLOAD_SIZE_MB
value: "50"
- key: DEBUG_MODE
value: "false"
- key: PORT
value: "8000"
# Logging Configuration
# Options: DEBUG, INFO, WARNING, ERROR, CRITICAL
# Set to DEBUG for detailed troubleshooting
- key: LOG_LEVEL
value: INFO
# Frontend URL for CORS - reference the frontend service
- key: FRONTEND_URL
fromService:
name: icp-analysis-frontend
type: web
property: host
# Health check endpoint (FastAPI health endpoint)
healthCheckPath: /api/status
# Auto-deploy from main branch
autoDeploy: true
# Next.js Frontend
- type: web
name: icp-analysis-frontend
runtime: docker
plan: starter
region: oregon
# Use the frontend Dockerfile
dockerfilePath: ./Dockerfile.frontend
# Environment variables for the Next.js frontend
envVars:
# Point to the backend API service - reference the backend service
- key: NEXT_PUBLIC_API_URL
fromService:
name: icp-analysis-api
type: web
property: host
- key: NODE_ENV
value: production
- key: PORT
value: "3000"
# Health check endpoint (Next.js default)
healthCheckPath: /
# Auto-deploy from main branch
autoDeploy: true