-
Notifications
You must be signed in to change notification settings - Fork 8
/
render.yaml
48 lines (46 loc) · 1.45 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
databases:
- name: zasoby-db
databaseName: zasoby
user: zasoby
region: frankfurt
services:
- type: pserv
name: zasoby-redis
env: docker
repo: https://github.com/render-examples/redis.git # optional
region: frankfurt
disk:
name: redis-data
mountPath: /var/lib/redis
sizeGB: 1 # optional
- type: web
name: zasoby
env: python
region: frankfurt
branch: production
healthCheckPath: /healthz
buildCommand: "./build.sh"
startCommand: "NEW_RELIC_CONFIG_FILE=newrelic.ini newrelic-admin run-program gunicorn config.wsgi:application -t 60"
# startCommand: "NEW_RELIC_CONFIG_FILE=newrelic.ini newrelic-admin run-program gunicorn config.wsgi:application -k gevent --worker-connections=50 --config=gunicorn_config.py"
# numInstances: 1 # optional (defaults to 1)
scaling:
minInstances: 1
maxInstances: 4
targetMemoryPercent: 90 # optional if targetCPUPercent is set (valid: 1-90)
targetCPUPercent: 80 # optional if targetMemory is set (valid: 1-90)
envVars:
- key: DATABASE_URL
fromDatabase:
name: zasoby-db
property: connectionString
- key: DJANGO_SECRET_KEY
generateValue: true
- key: WEB_CONCURRENCY
value: 3
- key: DJANGO_SETTINGS_MODULE
value: "config.settings.production"
- key: REDIS_URL
fromService:
name: zasoby-redis
type: pserv
property: hostport