-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy pathrender.yaml
More file actions
65 lines (61 loc) · 2.11 KB
/
Copy pathrender.yaml
File metadata and controls
65 lines (61 loc) · 2.11 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
# queue-agents. Web + Background Worker + Valkey + Postgres.
# Builds from the repo root so the npm workspaces resolve.
projects:
- name: agents-workshop-queue
environments:
- name: production
databases:
- name: queue-agents-db
plan: basic-256mb
region: oregon
postgresMajorVersion: "18"
services:
# Shared queue + progress bus.
- type: keyvalue
name: queue-agents-valkey
plan: starter
region: oregon
maxmemoryPolicy: noeviction
ipAllowList: []
# Producer: enqueues jobs, serves the UI, streams progress.
- type: web
name: queue-agents-web
runtime: node
region: oregon
plan: starter
buildCommand: npm ci
startCommand: npm run start --workspace @workshop/queue-agents
healthCheckPath: /healthz
envVars:
- key: DATABASE_URL
fromDatabase:
name: queue-agents-db
property: connectionString
- key: VALKEY_URL
fromService:
name: queue-agents-valkey
type: keyvalue
property: connectionString
- key: NODE_ENV
value: production
# Consumer: runs the agent. Scale `numInstances` up to fan out across PRs.
- type: worker
name: queue-agents-worker
runtime: node
region: oregon
plan: starter
numInstances: 1
buildCommand: npm ci
startCommand: npm run start:worker --workspace @workshop/queue-agents
envVars:
- key: DATABASE_URL
fromDatabase:
name: queue-agents-db
property: connectionString
- key: VALKEY_URL
fromService:
name: queue-agents-valkey
type: keyvalue
property: connectionString
- key: NODE_ENV
value: production