-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrender.yaml
48 lines (46 loc) · 1.3 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
services:
# Web service for the client (Static Site)
- type: web
name: chatbot-client
runtime: static
buildCommand: npm ci --include=dev && npm run build:client
staticPublishPath: ./dist
buildFilter:
paths: # Only trigger a build with changes to these files
- client/**/*
envVars:
- key: NODE_ENV
value: production
- type: web
name: chatbot-server
plan: free
runtime: docker
dockerfilePath: ./server/Dockerfile
buildFilter:
ignoredPaths:
- client/**/*
healthCheckPath: /health
envVars:
- key: NODE_ENV
value: production
- key: PORT
value: 80
- key: REDIS_URI
fromService:
type: redis
name: chatbot-cache
property: connectionString
- key: MONGODB_URI
sync: false # get value from dashboard
- key: CLIENT_MANIFEST_URL
value: https://chatbot-client-q9me.onrender.com/manifest.json
- key: FAVICON_URL
value: https://chatbot-client-q9me.onrender.com/favicon.ico
- key: COOKIE_SECRET
sync: false # get value from dashboard
- key: OPENAI_API_KEY
sync: false # get value from dashboard
- type: redis
name: chatbot-cache
plan: free
ipAllowList: [] # Only allow internal connections