-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
86 lines (83 loc) · 2.05 KB
/
Copy pathrender.yaml
File metadata and controls
86 lines (83 loc) · 2.05 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
services:
# API Server
- type: web
name: soraide-api
runtime: node
region: oregon
plan: starter
buildCommand: cd apps/api && pnpm install && pnpm build
startCommand: cd apps/api && pnpm start
envVars:
- key: NODE_ENV
value: production
- key: PORT
value: 4000
- key: FIREBASE_PROJECT_ID
sync: false
- key: FIREBASE_CLIENT_EMAIL
sync: false
- key: FIREBASE_PRIVATE_KEY
sync: false
- key: LIVEBLOCKS_SECRET_KEY
sync: false
- key: PISTON_URL
value: http://piston:2000
- key: REDIS_URL
fromService:
type: redis
name: soraide-redis
property: connectionString
healthCheckPath: /health
autoDeploy: true
# Preview Server
- type: web
name: soraide-preview
runtime: node
region: oregon
plan: starter
buildCommand: cd apps/preview && pnpm install && pnpm build
startCommand: cd apps/preview && pnpm start
disk:
name: preview-sessions
mountPath: /tmp/sessions
sizeGB: 10
envVars:
- key: NODE_ENV
value: production
- key: PORT
value: 5000
- key: SESSION_DIR
value: /tmp/sessions
- key: SESSION_TTL_MINUTES
value: 60
healthCheckPath: /health
autoDeploy: true
# Piston (Private Service - no public access)
- type: pserv
name: piston
runtime: docker
region: oregon
plan: starter
dockerfilePath: ./docker/Dockerfile.piston
dockerContext: .
envVars:
- key: PISTON_LOG_LEVEL
value: INFO
- key: PISTON_MAX_CONCURRENT_JOBS
value: 5
- key: PISTON_RUN_TIMEOUT
value: 10000
- key: PISTON_COMPILE_TIMEOUT
value: 15000
- key: PISTON_RUN_MEMORY_LIMIT
value: 256000000
- key: PISTON_COMPILE_MEMORY_LIMIT
value: 512000000
- key: PISTON_OUTPUT_MAX_SIZE
value: 65536
databases:
# Redis for rate limiting and caching
- name: soraide-redis
plan: starter
region: oregon
ipAllowList: []