-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrender.yaml
49 lines (46 loc) · 1.25 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
services:
- type: worker
name: queue
region: frankfurt
env: python
buildCommand: "pip install -r requirements.txt"
startCommand: "celery --app bridge worker --loglevel info --concurrency 4"
autoDeploy: false
envVars:
- key: PYTHON_VERSION
value: 3.8.17
- key: CELERY_BROKER_URL
fromService:
name: celery-redis
type: redis
property: connectionString
- type: web
name: bridge
region: frankfurt
env: python
buildCommand: ./build.sh
startCommand: "gunicorn bridge.wsgi:application"
autoDeploy: false
envVars:
- key: PYTHON_VERSION
value: 3.8.17
- key: WEB_CONCURRENCY
value: 4
- key: DJANGO_SETTINGS_MODULE
value: bridge.settings
- key: CELERY_BROKER_URL
fromService:
name: celery-redis
type: redis
property: connectionString
- type: redis
name: celery-redis
region: frankfurt
plan: starter # we choose a plan with persistence to ensure tasks are not lost upon restart
maxmemoryPolicy: noeviction # recommended policy for queues
ipAllowList: [] # only allow internal connections
databases:
- name: bridge-database
region: frankfurt
databaseName: django
user: django