-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
73 lines (65 loc) · 3.92 KB
/
Copy pathrender.yaml
File metadata and controls
73 lines (65 loc) · 3.92 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
# Render Blueprint — Appeal Case Manager
# https://render.com/docs/blueprint-spec
#
# Single Docker container: Python/FastAPI backend + pre-built React frontend.
# MongoDB is hosted externally (MongoDB Atlas recommended).
#
# Deploy steps:
# 1. Push this file to your repo.
# 2. In Render Dashboard → New → Blueprint → connect your repo.
# 3. Render will prompt for all sync:false env vars before first deploy.
# 4. See DEPLOYMENT_RENDER.md for the full walkthrough.
services:
- type: web
name: appeal-case-manager
runtime: docker
dockerfilePath: ./Dockerfile
# Optional (split-hosting/non-same-origin): uncomment to bake a backend URL
# into the frontend at build time.
# dockerBuildArgs:
# - key: REACT_APP_BACKEND_URL
# value: https://api.your-domain.com
# Note: REACT_APP_BACKEND_URL is NOT required for the web app when the frontend
# and backend are served from the same origin (this container). The frontend
# defaults to window.location.origin at runtime.
#
# REACT_APP_BACKEND_URL is only required for native mobile builds (Capacitor),
# where window.location.origin is not the real backend.
# Render health checks must return 200 even before the DB is reachable.
# /api/ready returns 503 when Mongo is unavailable, so use /api/health here.
healthCheckPath: /api/health
autoDeploy: false # set to true once URLs are confirmed
envVars:
# ── Database ────────────────────────────────────────────────────────────
- key: MONGO_URL
sync: false # set in Render dashboard — your MongoDB Atlas connection string
- key: DB_NAME
value: criminal_appeals
# ── App URLs & CORS ──────────────────────────────────────────────────────
# Set FRONTEND_URL to the public URL of this Render web service.
- key: FRONTEND_URL
value: https://appeal-case-manager.onrender.com
# Comma-separated list of trusted origins (never use *).
- key: CORS_ORIGINS
value: https://appeal-case-manager.onrender.com
# ── AI / LLM ─────────────────────────────────────────────────────────────
- key: OPENAI_API_KEY
sync: false # set in Render dashboard
# ── Google OAuth ─────────────────────────────────────────────────────────
- key: GOOGLE_CLIENT_ID
sync: false # set in Render dashboard
- key: GOOGLE_CLIENT_SECRET
sync: false # set in Render dashboard
# ── Admin & Contact ──────────────────────────────────────────────────────
- key: ADMIN_EMAILS
sync: false # comma-separated admin email addresses
- key: CONTACT_EMAIL
sync: false # primary support/contact address
# ── Email (Resend) ────────────────────────────────────────────────────────
- key: RESEND_API_KEY
sync: false # set in Render dashboard
- key: RESEND_FROM_EMAIL
sync: false # e.g. [email protected] (must be a verified Resend sender)
# ── Payments (optional) ──────────────────────────────────────────────────
- key: PAYID_EMAIL
sync: false # PayID email shown on invoices; defaults to CONTACT_EMAIL if blank