This repository has been archived by the owner on Jun 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
render.yaml
109 lines (104 loc) · 3.06 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
previewsEnabled: true
previewsExpireAfterDays: 5
services:
- type: web
name: frontend_comp
env: python
previewPlan: starter
healthCheckPath: /
buildCommand: "./build.sh"
startCommand: poetry run gunicorn --worker-tmp-dir /dev/shm -w 4 -k uvicorn.workers.UvicornWorker --log-file=- frontend_comp.config.asgi:application --preload
envVars:
- key: PYTHON_VERSION
value: 3.10.1
- fromGroup: sentry
- key: DJANGO_SECRET_KEY
generateValue: true
- key: DJANGO_SETTINGS_MODULE
value: "frontend_comp.config.settings.prod"
- key: DJANGO_ALLOWED_HOSTS
fromService:
type: web
envVarKey: RENDER_EXTERNAL_HOSTNAME
name: frontend_comp
- key: DJANGO_DEBUG
value: false
- key: DATABASE_URL
fromDatabase:
name: frontend_comp-db
property: connectionString
- key: SENTRY_ENVIRONMENT
fromService:
type: web
envVarKey: RENDER_SERVICE_NAME
name: frontend_comp
- key: SENTRY_RELEASE
fromService:
type: web
envVarKey: RENDER_GIT_COMMIT
name: frontend_comp
- key: DJANGO_AWS_STORAGE_BUCKET_NAME
value: frontend_comp
- key: DJANGO_AWS_ACCESS_KEY_ID
fromService:
type: web
envVarKey: MINIO_ROOT_USER
name: minio
- key: DJANGO_AWS_SECRET_ACCESS_KEY
fromService:
type: web
envVarKey: MINIO_ROOT_PASSWORD
name: minio
- key: DJANGO_AWS_S3_ENDPOINT_URL
fromService:
type: web
envVarKey: RENDER_EXTERNAL_URL
name: minio
- key: REDIS_HOST
fromService:
name: redis
type: pserv
property: host # available properties are listed below
- key: REDIS_PORT
fromService:
name: redis
type: pserv
property: port
- type: web
name: minio
healthCheckPath: /minio/health/live
env: docker
dockerfilePath: ./compose/prod/minio/Dockerfile
dockerContext: ./compose/prod/minio/
disk:
name: data
mountPath: /data
sizeGB: 10
envVars:
- key: MINIO_ROOT_USER
generateValue: true
- key: MINIO_ROOT_PASSWORD
generateValue: true
- key: PORT
value: 9000
- type: pserv
name: redis
dockerfilePath: ./compose/prod/redis/Dockerfile
dockerContext: ./compose/prod/redis
env: docker
disk:
name: data
mountPath: /var/lib/redis
sizeGB: 10
databases:
- name: frontend_comp-db
previewPlan: starter
databaseName: frontend_comp # optional (Render may add a suffix)
ipAllowList: [] # optional (defaults to allow all)
envVarGroups:
- name: sentry
envVars:
- key: SENTRY_DSN
sync: false
- key: SENTRY_PROJECT
value: frontend_comp