-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
71 lines (65 loc) · 2.54 KB
/
Copy pathrender.yaml
File metadata and controls
71 lines (65 loc) · 2.54 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
# yaml-language-server: $schema=https://render.com/schema/render.yaml.json
#
# iMessage Codex Agent on Render: one-click gallery template
# Template: https://github.com/render-examples/imessage-codex-agent-render-template
# Upstream: https://github.com/photon-hq/render-imessage-template
#
# Pattern: native-runtime (Node 22.12 + Express + Drizzle + pg-boss).
# Multi-resource: web service + managed Postgres + persistent disk.
# One instance is required: Codex credentials and workspaces live on the disk.
# Apply prompts for zero secrets; owner phone, Photon, and ChatGPT are
# configured from the deployed dashboard.
previews:
generation: off
projects:
- name: imessage-codex-agent-render-template
environments:
- name: production
services:
- type: web
name: imessage-codex-agent
runtime: node
plan: starter
region: oregon
numInstances: 1
autoDeployTrigger: off
# NODE_ENV=production makes npm omit devDependencies by default, but the
# TypeScript build and pre-deploy migration require the pinned dev tools.
buildCommand: npm ci --include=dev && npm run build
preDeployCommand: npm run db:migrate
startCommand: npm start
healthCheckPath: /healthz
# Render rejects custom shutdown delays on services with a persistent disk.
disk:
name: codex-data
mountPath: /var/data
sizeGB: 1
envVars:
- key: NODE_VERSION
value: "22.12.0"
- key: NODE_ENV
value: production
# Supplied automatically by the attached Render PostgreSQL database.
# Never replace this with a copied connection string.
- key: DATABASE_URL
fromDatabase:
name: imessage-agent-db
property: connectionString
- key: CODEX_HOME
value: /var/data/codex
- key: AGENT_WORKSPACE_ROOT
value: /var/data/workspaces
- key: CODEX_AUTH_MODE
value: chatgpt
- key: APP_ENCRYPTION_KEY
generateValue: true
databases:
- name: imessage-agent-db
databaseName: imessage_agent
user: imessage_agent
plan: basic-256mb
region: oregon
postgresMajorVersion: "18"
diskSizeGB: 15
connectionPool: none
ipAllowList: []