-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathrender.yaml
More file actions
80 lines (78 loc) · 2.02 KB
/
render.yaml
File metadata and controls
80 lines (78 loc) · 2.02 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
services:
# UI - Vite + React static site
- type: web
name: shadify-ui
runtime: static
buildCommand: corepack enable && pnpm install --no-frozen-lockfile && pnpm --filter @shadify/ui build
staticPublishPath: ./apps/ui/dist
routes:
- type: rewrite
source: /*
destination: /index.html
envVars:
- key: NODE_VERSION
value: "20"
- key: SKIP_INSTALL_DEPS
value: "true"
- key: VITE_RUNTIME_HOST
fromService:
name: shadify-runtime
type: web
property: host
buildFilter:
paths:
- apps/ui/**
- package.json
- pnpm-lock.yaml
# Runtime - Hono API server
- type: web
name: shadify-runtime
runtime: node
plan: starter
scaling:
minInstances: 1
maxInstances: 3
targetMemoryPercent: 80
targetCPUPercent: 70
buildCommand: corepack enable && pnpm install --no-frozen-lockfile && npm install -g tsx
startCommand: node --max-old-space-size=256 --expose-gc --import tsx/esm apps/runtime/server.ts
envVars:
- key: NODE_VERSION
value: "20"
- key: SKIP_INSTALL_DEPS
value: "true"
- key: OPENAI_API_KEY
sync: false
- key: LANGGRAPH_DEPLOYMENT_URL
fromService:
name: shadify-agent
type: web
property: hostport
buildFilter:
paths:
- apps/runtime/**
- package.json
- pnpm-lock.yaml
# Agent - Python LangGraph + FastAPI
- type: web
name: shadify-agent
runtime: python
plan: starter
scaling:
minInstances: 1
maxInstances: 3
targetMemoryPercent: 80
targetCPUPercent: 70
rootDir: apps/agent
buildCommand: pip install uv && uv sync
startCommand: uv run uvicorn main:app --host 0.0.0.0 --port $PORT
envVars:
- key: PYTHON_VERSION
value: "3.12.6"
- key: OPENAI_API_KEY
sync: false
- key: TAVILY_API_KEY
sync: false
buildFilter:
paths:
- apps/agent/**