forked from simstudioai/sim
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
118 lines (114 loc) · 3.5 KB
/
render.yaml
File metadata and controls
118 lines (114 loc) · 3.5 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
# Render.com Deployment Blueprint
# https://render.com/docs/blueprint-spec
services:
# Main Engine Application
- type: web
name: engine
region: frankfurt
runtime: docker
dockerfilePath: ./docker/app.Dockerfile
dockerContext: .
plan: standard
autoDeployTrigger: 'off'
dockerCommand: bun apps/sim/server.js
healthCheckPath: /api/health
# NOTE: Render executes preDeployCommand without a shell; builtins like `cd` can break unless wrapped correctly.
# Also, `bun --cwd <dir> run <script>` prints help and exits 0 on Bun 1.3.x.
# Use the supported form: `bun run --cwd <dir> <script>`.
preDeployCommand: bun run --cwd /app/packages/db db:migrate
envVars:
- key: NODE_ENV
value: production
- key: NEXT_TELEMETRY_DISABLED
value: "1"
- key: DATABASE_URL
fromDatabase:
name: engine-db
property: connectionString
- key: NEXT_PUBLIC_APP_URL
sync: false
- key: NEXT_PUBLIC_CREDENTIAL_SETS_ENABLED
value: "true"
- key: NEXT_PUBLIC_BRAND_NAME
value: "Kozmopath"
- key: DISABLE_REGISTRATION
value: "true"
- key: BETTER_AUTH_SECRET
generateValue: true
- key: ENCRYPTION_KEY
sync: false
- key: INTERNAL_API_SECRET
generateValue: true
- key: API_ENCRYPTION_KEY
sync: false
- key: COPILOT_API_KEY
sync: false
- key: GOOGLE_CLIENT_ID
value: "126798227694-9ugmdpnra8h5g1pmh121pcn32e8klsu8.apps.googleusercontent.com"
- key: GOOGLE_CLIENT_SECRET
sync: false
- key: SOCKET_SERVER_URL
sync: false
- key: NEXT_PUBLIC_SOCKET_URL
sync: false
# Optional: Redis for distributed locking, rate limiting, and caching
# Uncomment to enable multi-replica support
# - key: REDIS_URL
# fromService:
# type: redis
# name: engine-redis
# property: connectionString
# Realtime Socket Server
- type: web
name: engine-realtime
region: frankfurt
runtime: docker
dockerfilePath: ./docker/realtime.Dockerfile
dockerContext: .
plan: starter
autoDeployTrigger: 'off'
# CMD is defined in Dockerfile: bun /app/apps/sim/socket/dist/index.js
healthCheckPath: /health
envVars:
- key: NODE_ENV
value: production
- key: DATABASE_URL
fromDatabase:
name: engine-db
property: connectionString
- key: NEXT_PUBLIC_APP_URL
sync: false
- key: NEXT_PUBLIC_CREDENTIAL_SETS_ENABLED
value: "true"
- key: BETTER_AUTH_URL
sync: false
- key: BETTER_AUTH_SECRET
fromService:
type: web
name: engine
envVarKey: BETTER_AUTH_SECRET
- key: INTERNAL_API_SECRET
fromService:
type: web
name: engine
envVarKey: INTERNAL_API_SECRET
# Optional: Redis for cross-pod Socket.IO broadcasting
# Uncomment to enable multi-replica support
# - key: REDIS_URL
# fromService:
# type: redis
# name: engine-redis
# property: connectionString
databases:
- name: engine-db
region: frankfurt
plan: basic-256mb
postgresMajorVersion: '17'
# Optional: Uncomment to add Redis for multi-replica deployments
# Redis enables: cross-pod Socket.IO broadcasting, distributed locking,
# rate limiting storage, and MCP caching
#
# redis:
# - name: engine-redis
# region: frankfurt
# plan: starter # Or free for testing