-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
84 lines (81 loc) · 2.67 KB
/
Copy pathrender.yaml
File metadata and controls
84 lines (81 loc) · 2.67 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
# ZoneBus consolidated deploy on Render
# API embeds MQTT WebSocket (/mqtt) + edge workers; managed Postgres + Key Value.
projects:
- name: zonebus
environments:
- name: production
databases:
- name: zonebus-db
plan: free
postgresMajorVersion: "16"
databaseName: zonebus
user: zonebus
ipAllowList: []
services:
- type: keyvalue
name: zonebus-redis
plan: free
ipAllowList: []
maxmemoryPolicy: allkeys-lru
persistenceMode: off
- type: web
name: zonebus-api
runtime: docker
plan: free
region: oregon
dockerfilePath: ./apps/api/Dockerfile
dockerContext: .
healthCheckPath: /health
autoDeployTrigger: commit
envVars:
- key: NODE_ENV
value: production
- key: MQTT_EMBEDDED
value: "true"
- key: START_EDGE_WORKERS
value: "true"
- key: MIGRATE_ON_BOOT
value: "true"
- key: SEED_ON_BOOT
value: "true"
- key: JWT_EXPIRES
value: never
- key: MQTT_TOKEN_EXPIRES
value: never
- key: LOG_LEVEL
value: info
- key: JWT_SECRET
generateValue: true
- key: INTERNAL_TOKEN
generateValue: true
- key: DATABASE_URL
fromDatabase:
name: zonebus-db
property: connectionString
- key: REDIS_URL
fromService:
name: zonebus-redis
type: keyvalue
property: connectionString
# Public URLs derived at runtime from RENDER_EXTERNAL_* when unset.
- key: MQTT_USERNAME
value: svc-api
# Must match bootstrap-seeded device_credentials for svc-api
- key: MQTT_PASSWORD
value: svc-api-secret-change-me
- type: web
name: zonebus-web
runtime: docker
plan: free
region: oregon
# Paths are repo-root-relative on Render
dockerfilePath: ./apps/web/Dockerfile
dockerContext: ./apps/web
healthCheckPath: /health
autoDeployTrigger: commit
envVars:
- key: VITE_API_URL
fromService:
name: zonebus-api
type: web
envVarKey: RENDER_EXTERNAL_URL