-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
56 lines (54 loc) · 1.7 KB
/
Copy pathrender.yaml
File metadata and controls
56 lines (54 loc) · 1.7 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
services:
# PostgreSQL Database
- type: pg
name: systemink-database
plan: starter
databaseName: systemink_zjut
user: systemink_zjut_user
# Backend API Service
- type: web
name: systemink-api
env: node
region: oregon
plan: starter
buildCommand: npm install -g pnpm@8.15.0 && pnpm install && pnpm --filter @systemink/shared build && cd apps/api && npx prisma generate && cd ../.. && pnpm --filter @systemink/api build
startCommand: cd apps/api && pnpm exec node dist/main.js
envVars:
- key: NODE_ENV
value: production
- key: PORT
value: 3000
- key: DATABASE_URL
fromDatabase:
name: systemink-database
property: connectionString
- key: JWT_SECRET
generateValue: true
- key: JWT_EXPIRES_IN
value: 15m
- key: JWT_REFRESH_EXPIRES_IN
value: 7d
- key: CORS_ORIGIN
sync: false # Set this manually to your frontend URL
- key: UPLOAD_DIR
value: ./uploads
- key: MAX_FILE_SIZE
value: 52428800
- key: SITE_URL
sync: false # Set this manually to your frontend URL
healthCheckPath: /api/health
autoDeploy: true
# Frontend Web Service
- type: web
name: systemink-web
env: node
region: oregon
plan: starter
buildCommand: npm install -g pnpm@8.15.0 && pnpm install && pnpm --filter @systemink/shared build && pnpm --filter @systemink/web build
startCommand: cd apps/web && pnpm exec node server.js
envVars:
- key: PORT
value: 5173
- key: VITE_API_URL
sync: false # Set this manually to your API service URL (e.g., https://systemink-dev.onrender.com/api)
autoDeploy: true