-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
64 lines (61 loc) · 1.63 KB
/
render.yaml
File metadata and controls
64 lines (61 loc) · 1.63 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.yaml - Render Deployment Configuration
services:
- type: web
name: rentpass-api
env: python
region: singapore
plan: starter
buildCommand: pip install -r requirements_production.txt
startCommand: gunicorn main_production:app -w 4 -k uvicorn.workers.UvicornWorker -b 0.0.0.0:$PORT --timeout 120
envVars:
- key: ENVIRONMENT
value: production
- key: DEBUG
value: false
- key: DATABASE_URL
fromDatabase:
name: rentpass-db
property: connectionString
- key: SECRET_KEY
generateValue: true
- key: STRIPE_SECRET_KEY
sync: false
- key: SENDGRID_API_KEY
sync: false
- key: AWS_ACCESS_KEY_ID
sync: false
- key: AWS_SECRET_ACCESS_KEY
sync: false
- key: OPENAI_API_KEY
sync: false
healthCheckPath: /api/health
- type: worker
name: rentpass-worker
env: python
region: singapore
plan: starter
buildCommand: pip install -r requirements_production.txt
startCommand: celery -A main_production.celery worker --loglevel=info
envVars:
- key: ENVIRONMENT
value: production
- key: DATABASE_URL
fromDatabase:
name: rentpass-db
property: connectionString
- key: REDIS_URL
fromService:
type: redis
name: rentpass-redis
property: connectionString
databases:
- name: rentpass-db
databaseName: rentpass
user: rentpass_user
region: singapore
plan: starter
- name: rentpass-redis
type: redis
region: singapore
plan: starter
maxmemoryPolicy: allkeys-lru