-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
33 lines (30 loc) · 1.56 KB
/
Copy pathrender.yaml
File metadata and controls
33 lines (30 loc) · 1.56 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
# render.yaml — Render.com deployment configuration
# Connect your GitHub repo to Render and it reads this file automatically
services:
# ── FastAPI Backend ──────────────────────────────────────────────────────────
- type: web
name: dark-pattern-backend
runtime: python
buildCommand: pip install -r requirements.txt
startCommand: uvicorn backend.main:app --host 0.0.0.0 --port $PORT
envVars:
- key: GEMINI_API_KEY
sync: false # You fill this in Render dashboard — never commit your key
- key: DATABASE_URL
fromDatabase:
name: dark-pattern-db
property: connectionString
healthCheckPath: /health
# ── Streamlit Frontend ───────────────────────────────────────────────────────
- type: web
name: dark-pattern-frontend
runtime: python
buildCommand: pip install -r requirements.txt
startCommand: streamlit run frontend/app.py --server.port $PORT --server.address 0.0.0.0 --server.headless true
envVars:
- key: API_BASE
value: https://dark-pattern-backend.onrender.com/api # Update with your backend URL
# ── PostgreSQL Database ──────────────────────────────────────────────────────
databases:
- name: dark-pattern-db
plan: free