-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
109 lines (105 loc) · 2.98 KB
/
render.yaml
File metadata and controls
109 lines (105 loc) · 2.98 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
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
102
103
104
105
106
107
108
109
services:
- type: web
name: code-review-api
runtime: python
buildCommand: "pip install --upgrade pip && pip install -r requirements.txt"
startCommand: "uvicorn app.main:app --host 0.0.0.0 --port $PORT --workers 4"
plan: starter
healthCheckPath: /health
envVars:
- key: DATABASE_URL
fromDatabase:
name: code-review-db
property: connectionString
- key: REDIS_URL
fromService:
name: code-review-redis
type: redis
property: connectionString
- key: REDIS_RESULTS_URL
fromService:
name: code-review-redis
type: redis
property: connectionString
- key: GROQ_API_KEY
sync: false
- key: GITHUB_CLIENT_ID
sync: false
- key: GITHUB_CLIENT_SECRET
sync: false
- key: SECRET_KEY
generateValue: true
- key: GITHUB_OAUTH_REDIRECT_URI
value: https://code-review-api.onrender.com/auth/callback
- key: LOG_LEVEL
value: INFO
- key: ENABLE_METRICS
value: true
- key: PYTHONPATH
value: /opt/render/project/src
- type: worker
name: code-review-worker
runtime: python
buildCommand: "pip install --upgrade pip && pip install -r requirements.txt"
startCommand: "celery -A app.tasks.analysis_tasks worker --loglevel=info --concurrency=4 --max-tasks-per-child=1000"
plan: starter
scaling:
minInstances: 1
maxInstances: 3
targetCPUPercent: 70
envVars:
- key: DATABASE_URL
fromDatabase:
name: code-review-db
property: connectionString
- key: REDIS_URL
fromService:
name: code-review-redis
type: redis
property: connectionString
- key: REDIS_RESULTS_URL
fromService:
name: code-review-redis
type: redis
property: connectionString
- key: GROQ_API_KEY
sync: false
- key: GITHUB_CLIENT_ID
sync: false
- key: GITHUB_CLIENT_SECRET
sync: false
- key: SECRET_KEY
sync: false
- key: LOG_LEVEL
value: INFO
- key: PYTHONPATH
value: /opt/render/project/src
- type: worker
name: code-review-scheduler
runtime: python
buildCommand: "pip install --upgrade pip && pip install -r requirements.txt"
startCommand: "celery -A app.tasks.analysis_tasks beat --loglevel=info"
plan: starter
envVars:
- key: DATABASE_URL
fromDatabase:
name: code-review-db
property: connectionString
- key: REDIS_URL
fromService:
name: code-review-redis
type: redis
property: connectionString
- key: SECRET_KEY
sync: false
- key: PYTHONPATH
value: /opt/render/project/src
- type: redis
name: code-review-redis
maxmemoryPolicy: allkeys-lru
plan: starter
ipAllowList: []
databases:
- name: code-review-db
databaseName: code_review_db
plan: starter