-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
40 lines (39 loc) · 1.31 KB
/
Copy pathrender.yaml
File metadata and controls
40 lines (39 loc) · 1.31 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
services:
# Backend: FastAPI + pandas analysis engine
# The frontend reverse-proxies every /api request to this service.
- type: web
name: autodata-backend
runtime: python
rootDir: backend
plan: free
region: singapore
healthCheckPath: /api/health
buildCommand: pip install -r requirements.txt
startCommand: uvicorn app.main:app --host 0.0.0.0 --port $PORT
envVars:
- key: PYTHON_VERSION
value: 3.11.9
- key: CORS_ORIGINS
value: "*"
# Data lives here. Free tier is ephemeral: data is lost on spin-down or
# redeploy. To persist, upgrade to a paid instance type and attach a
# disk mounted at /opt/data (see https://render.com/docs/disks).
# Frontend: Next.js app. Every /api request is proxied server-side to the
# backend service through the rewrite in frontend/next.config.mjs, which
# reads BACKEND_URL (set below to the backend's public URL).
- type: web
name: autodata-frontend
runtime: node
rootDir: frontend
plan: free
region: singapore
buildCommand: npm ci && npm run build
startCommand: npm run start
envVars:
- key: NODE_VERSION
value: 20.11.1
- key: BACKEND_URL
fromService:
name: autodata-backend
type: web
envVarKey: RENDER_EXTERNAL_URL