-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrender.yaml
More file actions
34 lines (32 loc) · 898 Bytes
/
render.yaml
File metadata and controls
34 lines (32 loc) · 898 Bytes
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
# Render Blueprint - 一键部署后端
# https://render.com/docs/blueprint-spec
services:
# 后端 API 服务
- type: web
name: querygpt-api
runtime: python
region: singapore # 亚洲区域,可改为 oregon 等
plan: free
rootDir: apps/api
buildCommand: pip install -e ".[dev]"
startCommand: uvicorn app.main:app --host 0.0.0.0 --port $PORT
healthCheckPath: /health
envVars:
- key: DATABASE_URL
fromDatabase:
name: querygpt-db
property: connectionString
- key: JWT_SECRET_KEY
generateValue: true
- key: ENCRYPTION_KEY
generateValue: true
- key: PYTHON_VERSION
value: "3.11"
- key: ENVIRONMENT
value: production
# PostgreSQL 数据库(Render 提供免费实例)
databases:
- name: querygpt-db
databaseName: querygpt
plan: free
region: singapore