-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathrender.yaml
161 lines (144 loc) · 3.76 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
services:
- type: pserv
name: redis
env: docker
autoDeploy: false
repo: https://github.com/render-examples/redis.git
disk:
name: data
mountPath: /var/lib/redis
sizeGB: 10
- type: pserv
name: elasticsearch
dockerfilePath: ./elasticsearch/Dockerfile
dockerContext: ./elasticsearch
env: docker
plan: standard
disk:
name: esdata
mountPath: /usr/share/elasticsearch/data
sizeGB: 10
autoDeploy: false # so ES does not restart on a push to this repository.
envVars:
- key: ES_JAVA_OPTS
value: "-Xms512m -Xmx512m"
- key: discovery.type
value: single-node
- key: xpack.security.enabled
value: false
- key: xpack.monitoring.enabled
value: false
- key: xpack.graph.enabled
value: false
- key: xpack.watcher.enabled
value: false
- key: bootstrap.memory_lock
value: true
- type: worker
name: sidekiq
env: docker
dockerfilePath: ./forem/Dockerfile
dockerContext: ./forem
dockerCommand: ./scripts/sidekiq.sh
plan: standard
autoDeploy: false
envVars:
- fromGroup: rails
- key: REDIS_HOST
fromService:
name: redis
type: pserv
property: host
- key: REDIS_PORT
fromService:
name: redis
type: pserv
property: port
- key: ELASTICSEARCH_HOST
fromService:
name: elasticsearch
type: pserv
property: host
- key: ELASTICSEARCH_PORT
value: 9200
- key: DATABASE_URL
fromDatabase:
name: forem
property: connectionString
- type: web
name: forem
env: docker
dockerfilePath: ./forem/Dockerfile
dockerContext: ./forem
dockerCommand: ./scripts/rails.sh
plan: standard
autoDeploy: false
disk:
name: data
mountPath: /opt/apps/forem/public/uploads
sizeGB: 10
envVars:
- fromGroup: rails
- key: REDIS_HOST
fromService:
name: redis
type: pserv
property: host
- key: REDIS_PORT
fromService:
name: redis
type: pserv
property: port
- key: ELASTICSEARCH_HOST
fromService:
name: elasticsearch
type: pserv
property: host
- key: ELASTICSEARCH_PORT
value: 9200
- key: DATABASE_URL
fromDatabase:
name: forem
property: connectionString
databases:
- name: forem
plan: starter
envVarGroups:
- name: rails
envVars:
- key: APP_PROTOCOL
value: "https://"
- key: RAILS_ENV
value: production
- key: NODE_ENV
value: production
- key: RAILS_LOG_TO_STDOUT
value: 1
- key: RAILS_SERVE_STATIC_FILES
value: 1
- key: RAILS_MAX_THREADS
value: 1
- key: WEB_CONCURRENCY
value: 2
- key: RACK_TIMEOUT_WAIT_TIMEOUT
value: 100_000
- key: RACK_TIMEOUT_SERVICE_TIMEOUT
value: 100_000
- key: FOREM_OWNER_SECRET
generateValue: true
- key: SECRET_KEY_BASE
generateValue: true
- key: COMMUNITY_NAME
value: Forem on Render
- key: CLOUDINARY_API_KEY
value: configure_cloudinary_to_enable_uploaded_images
- key: CLOUDINARY_API_SECRET
value: configure_cloudinary_to_enable_uploaded_images
- key: CLOUDINARY_CLOUD_NAME
value: configure_cloudinary_to_enable_uploaded_images
- key: SENDGRID_API_KEY
sync: false # set to your Sendgrid SMTP Relay API key
- key: DEFAULT_EMAIL
sync: false # set to the email configured with Sendgrid
- key: APP_DOMAIN
sync: false # set this to your custom domain or the rails service .onrender domain