-
Notifications
You must be signed in to change notification settings - Fork 211
/
render.yaml
47 lines (47 loc) · 1.33 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
services:
- type: worker
name: celery-worker
region: ohio
runtime: python
buildCommand: "pip install -r requirements.txt"
startCommand: "celery --app tasks worker --loglevel info --concurrency 4"
autoDeploy: false
envVars:
- key: CELERY_BROKER_URL
fromService:
name: celery-redis
type: redis
property: connectionString
- type: web
name: app
region: ohio
runtime: python
buildCommand: "pip install -r requirements.txt"
startCommand: "gunicorn app:app"
autoDeploy: false
envVars:
- key: CELERY_BROKER_URL
fromService:
name: celery-redis
type: redis
property: connectionString
- type: web
name: flower
region: ohio
plan: free
runtime: python
buildCommand: "pip install -r requirements.txt"
startCommand: "celery flower --app tasks --loglevel info"
autoDeploy: false
envVars:
- key: CELERY_BROKER_URL
fromService:
type: redis
name: celery-redis
property: connectionString
- type: redis
name: celery-redis
region: ohio
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