-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
50 lines (46 loc) · 1.22 KB
/
Copy pathrender.yaml
File metadata and controls
50 lines (46 loc) · 1.22 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
services:
# 1. Primary REST API Engine
- type: web
name: assetflow-api
env: node
plan: starter
buildCommand: npm install && npm run build --filter=api
startCommand: npm run start:prod --filter=api
envVars:
- key: NODE_ENV
value: production
- key: DATABASE_URL
fromDatabase:
name: assetflow-db
property: connectionString
- key: REDIS_URL
fromService:
name: assetflow-cache
property: connectionString
# 2. BullMQ Worker Node
- type: worker
name: assetflow-worker
env: node
plan: starter
buildCommand: npm install && npm run build --filter=api
startCommand: node apps/api/dist/worker.js
envVars:
- key: DATABASE_URL
fromDatabase:
name: assetflow-db
property: connectionString
# 3. Python AI microservice
- type: web
name: assetflow-ai-service
env: python
plan: starter
buildCommand: pip install -r apps/ai-service/requirements.txt
startCommand: uvicorn apps.ai-service.main:app --host 0.0.0.0 --port 10000
databases:
- name: assetflow-db
plan: starter
postgresVersion: 16
interfaces:
- name: assetflow-cache
type: redis
plan: starter