-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
131 lines (127 loc) · 3.36 KB
/
Copy pathrender.yaml
File metadata and controls
131 lines (127 loc) · 3.36 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# What this gets you in 3 bullets:
# - Runtime + dashboard web services on Render, both built from this repo.
# - Managed Render Postgres (pgvector enabled) wired in via fromDatabase.
# - Env groups for LLM keys + S3 creds so you set them ONCE for both services.
#
# Deploy button URL (drop into your repo README):
# https://render.com/deploy?repo=https://github.com/Agent-Field/backai
databases:
- name: af-stack-postgres
plan: standard
databaseName: afstack
user: afstack
postgresMajorVersion: 16
# pgvector ships preinstalled on Render's Postgres 16+; AgentField vector
# memory works out of the box.
envVarGroups:
- name: af-stack-llm
envVars:
- key: OPENROUTER_API_KEY
sync: false
- key: ANTHROPIC_API_KEY
sync: false
- key: OPENAI_API_KEY
sync: false
- name: af-stack-s3
envVars:
- key: AF_STACK_S3_ENDPOINT
sync: false
- key: AF_STACK_S3_BUCKET
sync: false
- key: AF_STACK_S3_ACCESS_KEY
sync: false
- key: AF_STACK_S3_SECRET_KEY
sync: false
- key: AF_STACK_S3_REGION
value: us-east-1
- name: af-stack-sandbox
envVars:
- key: AF_STACK_SANDBOX_ADAPTER
value: e2b
- key: E2B_API_KEY
sync: false
services:
- type: web
name: af-stack-runtime
runtime: docker
dockerfilePath: ./services/runtime/Dockerfile
dockerContext: .
plan: standard
region: oregon
autoDeploy: true
branch: main
healthCheckPath: /health
numInstances: 1
envVars:
- key: AF_STACK_HTTP_ADDR
value: ":8080"
- key: AF_STACK_METRICS_ADDR
value: ":9090"
- key: AF_STACK_MODULE_MULTI_TENANCY
value: "true"
- key: AF_STACK_S3_ADAPTER
value: s3
- key: LOG_FORMAT
value: json
- key: LOG_LEVEL
value: info
- key: PORT
value: "8080"
- key: AF_STACK_DATABASE_URL
fromDatabase:
name: af-stack-postgres
property: connectionString
- key: AF_STACK_KMS_KEY
generateValue: true
- key: AF_STACK_AUTH_SECRET
generateValue: true
envVarGroups:
- af-stack-llm
- af-stack-s3
- af-stack-sandbox
- type: web
name: af-stack-dashboard
runtime: docker
dockerfilePath: ./apps/dashboard/Dockerfile
dockerContext: .
plan: standard
region: oregon
autoDeploy: true
branch: main
healthCheckPath: /
numInstances: 1
envVars:
- key: PORT
value: "3000"
- key: NODE_ENV
value: production
- key: NEXT_TELEMETRY_DISABLED
value: "1"
- key: DATABASE_URL
fromDatabase:
name: af-stack-postgres
property: connectionString
- key: RUNTIME_URL
fromService:
type: web
name: af-stack-runtime
property: hostport
- key: NEXT_PUBLIC_RUNTIME_URL
fromService:
type: web
name: af-stack-runtime
property: host
- key: AF_STACK_AUTH_SECRET
fromService:
type: web
name: af-stack-runtime
envVarKey: AF_STACK_AUTH_SECRET
- key: BETTER_AUTH_URL
fromService:
type: web
name: af-stack-dashboard
property: host
- key: GOOGLE_CLIENT_ID
sync: false
- key: GOOGLE_CLIENT_SECRET
sync: false