-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrender.yaml
More file actions
60 lines (57 loc) · 1.43 KB
/
render.yaml
File metadata and controls
60 lines (57 loc) · 1.43 KB
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
services:
# Backend API Service
- type: web
name: paksa-financial-backend
env: python
buildCommand: |
pip install -r requirements-minimal.txt &&
cd backend &&
python -m alembic upgrade head
startCommand: python start.py
envVars:
- key: PYTHON_VERSION
value: 3.10.0
- key: DATABASE_URL
fromDatabase:
name: paksa-financial-db
property: connectionString
- key: SECRET_KEY
generateValue: true
- key: ALGORITHM
value: HS256
- key: ACCESS_TOKEN_EXPIRE_MINUTES
value: 30
- key: ENVIRONMENT
value: production
- key: CORS_ORIGINS
value: https://paksa-financial-frontend.onrender.com
- key: REDIS_URL
fromService:
type: redis
name: paksa-financial-redis
property: connectionString
# Frontend Service
- type: web
name: paksa-financial-frontend
env: node
buildCommand: |
cd frontend &&
npm ci &&
npm run build
staticPublishPath: frontend/dist
envVars:
- key: NODE_VERSION
value: 18.17.0
- key: VITE_API_BASE_URL
value: https://paksa-financial-backend.onrender.com
# Database
- type: pserv
name: paksa-financial-db
env: postgresql
plan: starter
databaseName: paksa_financial
user: paksa_user
# Redis Cache
- type: redis
name: paksa-financial-redis
plan: starter