Repository navigation
Expand file tree
/
Copy pathrender.yaml
More file actions
69 lines (66 loc) · 1.81 KB
/
Copy pathrender.yaml
File metadata and controls
69 lines (66 loc) · 1.81 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
# Render Blueprint Specification for ProofPay
# Official Sponsor Integration: Render (https://paypalaihackathon.devpost.com/details/render)
# Deploys Next.js 15 Web Service, Background Scheduler Worker, and PostgreSQL 16 Database.
services:
# 1. ProofPay Web Portal & REST API
- type: web
name: proofpay-web
runtime: node
plan: standard
region: oregon
buildCommand: npm install && npm run build
startCommand: npm start
healthCheckPath: /api/v1/health
envVars:
- key: NODE_ENV
value: production
- key: DATABASE_URL
fromDatabase:
name: proofpay-postgres
property: connectionString
- key: SESSION_SECRET
generateValue: true
- key: PAYPAL_MODE
value: sandbox
- key: PAYPAL_CLIENT_ID
sync: false
- key: PAYPAL_CLIENT_SECRET
sync: false
- key: GROQ_API_KEY
sync: false
- key: PROOFPAY_APP_URL
fromService:
type: web
name: proofpay-web
property: host
# 2. ProofPay Background Verification & Scheduler Worker
- type: worker
name: proofpay-worker
runtime: node
plan: standard
region: oregon
buildCommand: npm install && npm run build
startCommand: npm run worker
envVars:
- key: NODE_ENV
value: production
- key: DATABASE_URL
fromDatabase:
name: proofpay-postgres
property: connectionString
- key: PAYPAL_MODE
value: sandbox
- key: PAYPAL_CLIENT_ID
sync: false
- key: PAYPAL_CLIENT_SECRET
sync: false
- key: GROQ_API_KEY
sync: false
# 3. Managed PostgreSQL 16 Database
databases:
- name: proofpay-postgres
plan: standard
region: oregon
databaseName: proofpay
user: proofpay_user
postgresMajorVersion: 16