forked from run-llama/sec-insights
-
Notifications
You must be signed in to change notification settings - Fork 0
/
render.yaml
101 lines (100 loc) · 3.38 KB
/
render.yaml
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
previewsEnabled: true
databases:
- name: llama-app-db
databaseName: llama_app_db
plan: pro
previewPlan: starter
services:
# A Docker web service
# Docs for Render blueprints:
# https://render.com/docs/blueprint-spec
- type: web
name: llama-app-backend
runtime: docker
repo: https://github.com/run-llama/sec-insights.git
region: oregon
plan: standard
rootDir: ./backend
# https://render.com/docs/blueprint-spec#scaling
scaling:
minInstances: 2
maxInstances: 10
targetMemoryPercent: 75 # optional if targetCPUPercent is set (valid: 1-90)
targetCPUPercent: 75 # optional if targetMemory is set (valid: 1-90)
healthCheckPath: /api/health/
initialDeployHook: make seed_db_based_on_env
envVars:
- key: DATABASE_URL
fromDatabase:
name: llama-app-db
property: connectionString
- fromGroup: general-settings
- fromGroup: prod-web-secrets
- fromGroup: preview-web-secrets
# A Docker cron service
# Runs the seed_db job which should only be upserts and otherwise idempotent
- type: cron
name: llama-app-cron
runtime: docker
repo: https://github.com/run-llama/sec-insights.git
region: oregon
plan: standard
rootDir: ./backend
# set to the fake date of Feb 31st so it never runs. Meant to be manually triggered.
schedule: "0 5 31 2 ?"
dockerCommand: make seed_db_based_on_env
envVars:
- key: DATABASE_URL
fromDatabase:
name: llama-app-db
property: connectionString
- fromGroup: general-settings
- fromGroup: prod-web-secrets
- fromGroup: preview-web-secrets
envVarGroups:
- name: general-settings
envVars:
- key: IS_PREVIEW_ENV
value: false
previewValue: true
- key: LOG_LEVEL
value: INFO
previewValue: DEBUG
- key: BACKEND_CORS_ORIGINS
value: '["http://localhost", "http://localhost:8000", "http://localhost:3000", "http://127.0.0.1:3000", "https://llama-app-backend.onrender.com", "https://llama-app-frontend.vercel.app", "http://secinsights.ai", "http://www.secinsights.ai", "https://secinsights.ai", "https://www.secinsights.ai"]'
# S3_BUCKET_NAME is the bucket used for the StorageContext of the backend's LlamaIndex chat engine
- key: S3_BUCKET_NAME
value: llama-app-backend-prod
previewValue: llama-app-backend-preview
# S3_ASSET_BUCKET_NAME is the bucket used for app assets (e.g. document PDFs)
- key: S3_ASSET_BUCKET_NAME
value: llama-app-web-assets-prod
previewValue: llama-app-web-assets-preview
- key: CDN_BASE_URL
value: https://d687lz8k56fia.cloudfront.net
previewValue: https://dl94gqvzlh4k8.cloudfront.net
- key: SENTRY_DSN
sync: false
- name: prod-web-secrets
envVars:
# Manually add a prod value for OPENAI_API_KEY in Render dashboard
- key: OPENAI_API_KEY
sync: false
- key: AWS_KEY
sync: false
- key: AWS_SECRET
sync: false
- key: POLYGON_IO_API_KEY
sync: false
- name: preview-web-secrets
envVars:
# All env vars in this group should be prefixed with "PREVIEW_"
# Manually add a preview value for PREVIEW_OPENAI_API_KEY in Render dashboard
- key: PREVIEW_OPENAI_API_KEY
sync: false
- key: PREVIEW_AWS_KEY
sync: false
- key: PREVIEW_AWS_SECRET
sync: false
- key: PREVIEW_POLYGON_IO_API_KEY
sync: false