generated from xtream1101/django-react-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrender.yaml
70 lines (66 loc) · 1.47 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
previewsEnabled: false
previewsExpireAfterDays: 1
services:
# App
- type: web
name: napkinnotes:app
env: static
rootDir: app/
buildFilter:
paths:
- app/**
buildCommand: ./scripts/render/build.sh
staticPublishPath: ./dist
headers:
- path: /*
name: X-Frame-Options
value: sameorigin
routes:
- type: rewrite
source: /*
destination: /index.html
# API
- type: web
name: napkinnotes:api
env: python
plan: starter
rootDir: api/
buildFilter:
paths:
- api/**
startCommand: ./scripts/render/start.sh
buildCommand: ./scripts/render/build.sh
envVars:
- key: PYTHON_VERSION
value: 3.11.4
- key: DATABASE_URL
fromDatabase:
name: napkinnotes:db
property: connectionString
- key: DJANGO_SECRET_KEY
generateValue: true
- key: WEB_CONCURRENCY
value: 4
- key: REDIS_HOST
fromService:
type: redis
name: napkinnotes:redis
property: host
- key: REDIS_PORT
fromService:
type: redis
name: napkinnotes:redis
property: port
- key: REDIS_URL
fromService:
type: redis
name: napkinnotes:redis
property: connectionString
- type: redis
name: napkinnotes:redis
ipAllowList: []
databases:
- name: napkinnotes:db
databaseName: napkinnotes
user: admin
plan: free