-
Notifications
You must be signed in to change notification settings - Fork 0
/
render.yaml
149 lines (144 loc) · 4.05 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
# If your hyper app exists in a sub-directory of your repo ie. monorepo,
# Set the path here to the root of your hyper configuration
# rootDir: apps/hyper
services:
# The Hyper Application
- type: web
name: hyper
# Change to the desired Render plan
plan: starter
env: docker
dockerfilePath: ./app/Dockerfile
dockerContext: ./app
envVars:
# key and secret for accessing the hyper server
- key: SUB
generateValue: true
- key: SECRET
generateValue: true
# Include the MongoDB credentials in the hyper app runtime environment
- key: MONGO_USERNAME
fromService:
name: mongodb
type: pserv
envVarKey: MONGO_INITDB_ROOT_USERNAME
- key: MONGO_PASSWORD
fromService:
name: mongodb
type: pserv
envVarKey: MONGO_INITDB_ROOT_PASSWORD
# Include the MongoDB host url and port
- key: MONGO_HOST
fromService:
name: mongodb
type: pserv
property: hostport
# Include the Redis host url and port
- key: REDIS_HOST
fromService:
name: redis
type: pserv
property: host
- key: REDIS_PORT
fromService:
name: redis
type: pserv
property: port
# Include the Elasticsearch host url
- key: ELASTICSEARCH_HOST
fromService:
name: elasticsearch
type: pserv
property: hostport
# Include the MinIO credentials in the hyper app runtime environment
- key: MINIO_USERNAME
fromService:
name: minio
type: web
envVarKey: MINIO_ROOT_USER
- key: MINIO_PASSWORD
fromService:
name: minio
type: web
envVarKey: MINIO_ROOT_PASSWORD
# Include the MinIO host url
- key: MINIO_HOST
fromService:
name: minio
type: web
property: host
# MongoDB Server powering hyper Data Services
- type: pserv
name: mongodb
env: docker
# Change to the desired Render plan
plan: starter
dockerfilePath: ./.mongodb/Dockerfile
dockerContext: ./.mongodb
# Use a Render Disk to persist data
disk:
name: mongodbdata
mountPath: /data/db
# Change this value if you'd like more DB storage
sizeGB: 5
autoDeploy: false
envVars:
- key: MONGO_INITDB_ROOT_USERNAME
generateValue: true
- key: MONGO_INITDB_ROOT_PASSWORD
generateValue: true
# Redis Server power hyper Cache and hyper Queue Services
- type: pserv
name: redis
env: docker
dockerfilePath: ./.redis/Dockerfile
dockerContext: ./.redis
# Change to the desired Render plan
plan: starter
autoDeploy: false
disk:
name: redisdata
mountPath: /var/lib/redis
# Change this value if you'd like more cache storage
sizeGB: 5
# Elasticsearch power hyper Search Services
- type: pserv
name: elasticsearch
env: docker
# Change to the desired Render plan
# NOTE: this has to be at least standard or Elasticsearch errors due to insufficient memory -___-
plan: standard
dockerfilePath: ./.elasticsearch/Dockerfile
dockerContext: ./.elasticsearch
disk:
name: esdata
mountPath: /usr/share/elasticsearch/data
# Change this value if you'd like more index storage
sizeGB: 10
autoDeploy: false
envVars:
- key: ES_JAVA_OPTS
value: "-Xms512m -Xmx512m"
- key: discovery.type
value: single-node
- key: cluster.name
value: elastic
# MinIO Server to power hyper Storage Services
# In order for MinIO to accept requests using presigned urls,
# the server must be made public
- type: web
name: minio
env: docker
plan: starter
dockerfilePath: ./.minio/Dockerfile
dockerContext: ./.minio
disk:
name: miniodata
mountPath: /data
sizeGB: 5
autoDeploy: false
envVars:
- key: MINIO_ROOT_USER
generateValue: true
- key: MINIO_ROOT_PASSWORD
generateValue: true