-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
39 lines (37 loc) · 1.12 KB
/
render.yaml
File metadata and controls
39 lines (37 loc) · 1.12 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
services:
- type: pserv
name: stackit-backend
runtime: python
buildCommand: cd backend && pip install uv && uv pip install -r pyproject.toml
startCommand: cd backend && uvicorn app.main:app --host 0.0.0.0 --port $PORT
plan: starter
envVars:
- key: DATABASE_URL
fromDatabase:
name: stackit-postgres
property: connectionString
- key: SECRET_KEY
generateValue: true
- key: ALGORITHM
value: HS256
- key: ACCESS_TOKEN_EXPIRE_MINUTES
value: 300
- key: BACKEND_CORS_ORIGINS
value: '["https://stackit-frontend.onrender.com"]'
- type: web
name: stackit-frontend
runtime: node
buildCommand: cd frontend && npm install -g pnpm && pnpm install && pnpm build
startCommand: cd frontend && pnpm start
plan: starter
envVars:
- key: NODE_ENV
value: production
- key: NEXT_PUBLIC_API_URL
value: https://stackit-backend.onrender.com
- key: NEXT_PUBLIC_WS_URL
value: wss://stackit-backend.onrender.com
databases:
- name: stackit-postgres
databaseName: stackit
plan: starter