-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
92 lines (88 loc) · 2.34 KB
/
Copy pathrender.yaml
File metadata and controls
92 lines (88 loc) · 2.34 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
services:
# Web Service
- type: web
name: carebridge-web
env: python
buildCommand: "./build.sh"
startCommand: "gunicorn --bind 0.0.0.0:$PORT --workers 3 CareBridge.wsgi:application"
plan: starter
envVars:
- key: PYTHON_VERSION
value: 3.11.0
- key: DEBUG
value: False
- key: SECRET_KEY
generateValue: true
- key: ALLOWED_HOSTS
value: "carebridge-web.onrender.com,localhost,127.0.0.1"
- key: CORS_ALLOWED_ORIGINS
value: "https://carebridge-web.onrender.com"
- key: USE_POSTGRESS_DATABASE
value: True
- key: DATABASE_URL
fromDatabase:
name: carebridge-db
property: connectionString
- key: REDIS_URL
fromService:
type: redis
name: carebridge-redis
property: connectionString
# PostgreSQL Database
- type: pserv
name: carebridge-db
env: postgresql
plan: starter
databaseName: carebridge
databaseUser: carebridge_user
# Redis Cache
- type: redis
name: carebridge-redis
plan: starter
maxmemoryPolicy: allkeys-lru
# Background Worker (Celery)
- type: worker
name: carebridge-worker
env: python
buildCommand: "./build.sh"
startCommand: "celery -A CareBridge worker -l info --concurrency=2"
plan: starter
envVars:
- key: PYTHON_VERSION
value: 3.11.0
- key: DEBUG
value: False
- key: SECRET_KEY
sync: false
- key: DATABASE_URL
fromDatabase:
name: carebridge-db
property: connectionString
- key: REDIS_URL
fromService:
type: redis
name: carebridge-redis
property: connectionString
# Celery Beat Scheduler
- type: worker
name: carebridge-scheduler
env: python
buildCommand: "./build.sh"
startCommand: "celery -A CareBridge beat -l info --scheduler django_celery_beat.schedulers:DatabaseScheduler"
plan: starter
envVars:
- key: PYTHON_VERSION
value: 3.11.0
- key: DEBUG
value: False
- key: SECRET_KEY
sync: false
- key: DATABASE_URL
fromDatabase:
name: carebridge-db
property: connectionString
- key: REDIS_URL
fromService:
type: redis
name: carebridge-redis
property: connectionString