-
Notifications
You must be signed in to change notification settings - Fork 27
/
render.yaml
106 lines (100 loc) · 2.67 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
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
databases:
- name: redash
databaseName: redash
user: redash
services:
# Do not forget to run `render-redash create_db` in Render Shell after creating this service.
- type: web
name: redash
env: docker
plan: standard
dockerCommand: render-redash server
autoDeploy: false
envVars:
- key: REDASH_DATABASE_URL
fromDatabase:
name: redash
property: connectionString
- key: REDIS_HOSTPORT
fromService:
type: pserv
name: redash-redis
property: hostport
- fromGroup: redash-shared
- fromGroup: redash-mail
- type: worker
name: redash-scheduler
env: docker
dockerCommand: render-redash scheduler
autoDeploy: false
envVars:
- key: REDASH_DATABASE_URL
fromDatabase:
name: redash
property: connectionString
- key: REDIS_HOSTPORT
fromService:
type: pserv
name: redash-redis
property: hostport
- fromGroup: redash-shared
- fromGroup: redash-mail
- key: QUEUES
value: "celery"
- key: WORKERS_COUNT
value: 1
- type: worker
name: redash-worker
env: docker
plan: standard
dockerCommand: render-redash worker
autoDeploy: false
envVars:
- key: REDASH_DATABASE_URL
fromDatabase:
name: redash
property: connectionString
- key: REDIS_HOSTPORT
fromService:
type: pserv
name: redash-redis
property: hostport
- fromGroup: redash-shared
- fromGroup: redash-mail
- key: QUEUES
value: "queries,scheduled_queries,schemas"
- type: pserv
name: redash-redis
env: docker
repo: https://github.com/render-examples/redis.git
autoDeploy: false
disk:
name: data
mountPath: /var/lib/redis
sizeGB: 10
envVarGroups:
- name: redash-shared
envVars:
- key: REDASH_LOG_LEVEL
value: "INFO"
- key: REDASH_COOKIE_SECRET
generateValue: true
# Uncomment and fill following fields if you wish to set up mailing in Redash.
# It’s recommended to use some mail service, like Amazon SES or Mailgun
# to send emails to ensure deliverability.
- name: redash-mail
envVars:
# - key: REDASH_MAIL_SERVER
# value: (SMTP server address)
# - key: REDASH_MAIL_PORT
# value: 25
# - key: REDASH_MAIL_USE_TLS
# value: false
# - key: REDASH_MAIL_USE_SSL
# value: false
# - key: REDASH_MAIL_USERNAME
# value: None
# - key: REDASH_MAIL_PASSWORD
# value: None
# - key: REDASH_MAIL_DEFAULT_SENDER
# value: (Email address to send from)