-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
40 lines (40 loc) · 1.86 KB
/
Copy pathrender.yaml
File metadata and controls
40 lines (40 loc) · 1.86 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
# Minimal Render Blueprint for the Aporia backend. Deploys
# docker/backend.Dockerfile (repo root as build context, matching
# docker-compose.yml's convention - see that file's header comment) as a
# single web service. The frontend is deployed separately, natively, on
# Vercel (no Docker there) - not part of this blueprint.
#
# Render injects PORT automatically; the Dockerfile CMD already reads it
# (see docker/backend.Dockerfile). Secrets/environment-specific values are
# `sync: false` so they're set once via Render's dashboard, not committed
# here or synced from git.
services:
- type: web
name: aporia-backend
runtime: docker
dockerfilePath: docker/backend.Dockerfile
dockerContext: .
plan: free
healthCheckPath: /api/health
envVars:
# Live queries (POST /api/query) run the full ML pipeline (SPECTER2 +
# torch + UMAP/HDBSCAN + torch_geometric all loaded at once), which
# does not fit in this plan's memory - see backend/pipeline_runner.py.
# Defaulted off here so the public deployment reliably serves
# showcase mode; flip to "true" in the dashboard only after moving to
# a higher-memory plan (see backend/routes.py's LIVE_QUERY_ENABLED).
- key: ENABLE_LIVE_QUERY
value: "false"
# Optional - falls back to Semantic Scholar's unauthenticated rate
# limit if unset (see core/config.py).
- key: SEMANTIC_SCHOLAR_API_KEY
sync: false
# Comma-separated list of allowed CORS origins, e.g. the live Vercel
# frontend URL (see backend/main.py). Falls back to localhost dev
# origins if unset, which is wrong for production - set this.
- key: ALLOWED_ORIGINS
sync: false
# Optional - overrides the default local SQLite file (see
# backend/db.py). Leave unset to use Render's (ephemeral) local disk.
- key: DATABASE_URL
sync: false