-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrender.yaml
61 lines (60 loc) · 1.56 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
50
51
52
53
54
55
56
57
58
59
60
61
databases:
- name: incredible-data-db
plan: free
databaseName: incredible_data
user: incredible_data_user
services:
- type: worker
name: celery-worker
region: oregon
runtime: python
buildCommand: "pip install -r requirements.txt"
startCommand: "celery --app config.celery_app worker --loglevel info --concurrency 4"
autoDeploy: false
envVars:
- key: DATABASE_URL
fromDatabase:
name: incredible-data-db
property: connectionString
- key: CELERY_BROKER_URL
fromService:
name: celery-redis
type: redis
property: connectionString
- type: web
plan: free
name: incredible-data-web
runtime: python
buildCommand: "./build.sh"
startCommand: "python -m gunicorn config.asgi:application -k uvicorn.workers.UvicornWorker"
autoDeploy: false
envVars:
- key: DATABASE_URL
fromDatabase:
name: incredible-data-db
property: connectionString
- key: SECRET_KEY
generateValue: true
- key: WEB_CONCURRENCY
value: 4
- key: CELERY_BROKER_URL
fromService:
name: celery-redis
type: redis
property: connectionString
- key: REDIS_URL
fromService:
name: cache-redis
type: redis
property: connectionString
- type: redis
name: celery-redis
region: oregon
plan: starter
maxmemoryPolicy: noeviction
ipAllowList: []
- type: redis
name: cache-redis
region: oregon
plan: starter
ipAllowList: []