-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrender.yaml
More file actions
70 lines (67 loc) · 1.77 KB
/
render.yaml
File metadata and controls
70 lines (67 loc) · 1.77 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
services:
# Main web service (API + Frontend)
- type: web
name: xmrt-ecosystem-v2
env: node
plan: starter
buildCommand: |
# Install dependencies for API
cd apps/api && npm install
# Install dependencies for frontend
cd ../web/frontend && npm install
# Build frontend
npm run build
# Copy built frontend to API public directory
mkdir -p ../../api/public
cp -r dist/* ../../api/public/
startCommand: node apps/api/src/index.js
healthCheckPath: /api/health
envVars:
- key: NODE_ENV
value: production
- key: PORT
value: 10000
- key: MONGODB_URL
fromDatabase:
name: xmrt-mongodb
property: connectionString
- key: JWT_SECRET
generateValue: true
- key: JWT_ACCESS_EXPIRATION_MINUTES
value: 30
- key: JWT_REFRESH_EXPIRATION_DAYS
value: 30
- key: SUPABASE_URL
fromService:
type: pserv
name: xmrt-supabase
property: host
- key: SUPABASE_KEY
sync: false
- key: OPENAI_API_KEY
sync: false
- key: GITHUB_TOKEN
sync: false
# Database service
- type: pserv
name: xmrt-mongodb
env: docker
plan: starter
dockerfilePath: ./Dockerfile.mongo
disk:
name: xmrt-data
mountPath: /data/db
sizeGB: 1
databases:
- name: xmrt-postgres
databaseName: xmrt_ecosystem
user: xmrt_user
plan: starter
# Static site for frontend (alternative deployment)
# - type: static
# name: xmrt-frontend
# buildCommand: cd apps/web/frontend && npm install && npm run build
# staticPublishPath: apps/web/frontend/dist
# envVars:
# - key: REACT_APP_API_URL
# value: https://xmrt-ecosystem-v2.onrender.com