Skip to content

Commit 32061ab

Browse files
committed
ci: add deployment blueprint
1 parent 327e5ec commit 32061ab

File tree

1 file changed

+78
-0
lines changed

1 file changed

+78
-0
lines changed

render.yaml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
previewsEnabled: true
2+
databases:
3+
- name: healthcare-db
4+
databaseName: llama_app_db
5+
plan: free
6+
previewPlan: free
7+
8+
services:
9+
# A Docker web service
10+
# Docs for Render blueprints:
11+
# https://render.com/docs/blueprint-spec
12+
- type: web
13+
name: healthcare-backend
14+
runtime: docker
15+
repo: https://github.com/LongBaoCoder2/qllm.git
16+
region: singapore
17+
plan: free
18+
rootDir: ./backend
19+
scaling: # Autoscaling configuration
20+
minInstances: 1
21+
maxInstances: 3
22+
targetMemoryPercent: 60
23+
targetCPUPercent: 60
24+
healthCheckPath: /api/health/
25+
envVars:
26+
- key: DATABASE_URL
27+
fromDatabase:
28+
name: healthcare-db
29+
property: connectionString
30+
- fromGroup: general-settings
31+
- fromGroup: prod-web-secrets
32+
- fromGroup: preview-web-secrets
33+
34+
envVarGroups:
35+
- name: general-settings
36+
envVars:
37+
- key: PROJECT_NAME
38+
value: qllm
39+
previewValue: qllm-preview
40+
- key: LOG_LEVEL
41+
value: INFO
42+
- key: FRONTEND_HOST
43+
value: https://qllm-healthcare.vercel.app/
44+
- key: API_PREFIX
45+
value: '/api/v1'
46+
previewValue: true
47+
- key: LOG_LEVEL
48+
value: INFO
49+
previewValue: DEBUG
50+
- key: BACKEND_CORS_ORIGINS
51+
value: '["http://localhost", "http://localhost:8000", "http://localhost:3000", "http://localhost:5173", "http://127.0.0.1:3000", "https://llama-app-backend.onrender.com", "https://qllm-healthcare.vercel.app/"]'
52+
- key: QDRANT_URL
53+
value: https://6a4f58ad-84bd-4868-b9ec-48fdb5c59ef3.europe-west3-0.gcp.cloud.qdrant.io:6333
54+
previewValue: https://dl94gqvzlh4k8.cloudfront.net
55+
- key: SENTRY_DSN
56+
sync: false
57+
- key: LLM_TEMPERATURE
58+
value: 0.5
59+
- key: LLM_MAX_TOKENS
60+
value: 256
61+
- key: EMBEDDING_DIM
62+
value: 1536
63+
- name: prod-web-secrets
64+
envVars:
65+
# Manually add a prod value for OPENAI_API_KEY in Render dashboard
66+
- key: OPENAI_API_KEY
67+
sync: false
68+
- key: QDRANT_API_KEY
69+
sync: false
70+
- name: preview-web-secrets
71+
envVars:
72+
# All env vars in this group should be prefixed with "PREVIEW_"
73+
# Manually add a preview value for PREVIEW_OPENAI_API_KEY in Render dashboard
74+
- key: PREVIEW_OPENAI_API_KEY
75+
sync: false
76+
- key: PREVIEW_QDRANT_API_KEY
77+
sync: false
78+

0 commit comments

Comments
 (0)