-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
executable file
·64 lines (62 loc) · 1.55 KB
/
Copy pathrender.yaml
File metadata and controls
executable file
·64 lines (62 loc) · 1.55 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
# Render Blueprint - 一键部署 StudyKit(免费计划)
services:
# ===== Backend API (Express + Docker) =====
- type: web
name: studykit-backend
runtime: docker
dockerfilePath: ./backend/Dockerfile
dockerContext: ./backend
region: frankfurt
envVars:
- key: NODE_ENV
value: production
- key: PORT
value: "3001"
- key: DB_HOST
fromDatabase:
name: studykit-db
property: host
- key: DB_PORT
fromDatabase:
name: studykit-db
property: port
- key: DB_NAME
fromDatabase:
name: studykit-db
property: database
- key: DB_USER
fromDatabase:
name: studykit-db
property: user
- key: DB_PASSWORD
fromDatabase:
name: studykit-db
property: password
- key: JWT_SECRET
generateValue: true
- key: AI_CREDENTIAL_ENCRYPTION_KEY
generateValue: true
- key: CORS_ORIGIN
fromService:
type: web
name: studykit-frontend
property: host
# ===== Frontend (React Static Site) =====
- type: web
name: studykit-frontend
runtime: static
buildCommand: npm install && npm run build
staticPublishPath: ./dist
pullRequestPreviewsEnabled: false
envVars:
- key: VITE_API_URL
fromService:
type: web
name: studykit-backend
property: host
databases:
- name: studykit-db
databaseName: studykit
user: studykit
plan: free
region: frankfurt