-
Notifications
You must be signed in to change notification settings - Fork 81
Expand file tree
/
Copy pathrender.yaml
More file actions
87 lines (83 loc) · 2.12 KB
/
render.yaml
File metadata and controls
87 lines (83 loc) · 2.12 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
# Render deployment configuration for GroqTales Backend
# This configuration sets up the backend API and SDK services on Render
services:
# Main Backend API Service
- type: web
name: groqtales-backend-api
env: node
region: oregon
plan: starter
buildCommand: npm install && npm run build:backend
startCommand: npm run start:backend
healthCheckPath: /healthz
envVars:
- key: NODE_ENV
value: production
- key: PORT
value: 3001
- key: GROQ_API_KEY
sync: false
- key: OPENAI_API_KEY
sync: false
- key: NEXT_PUBLIC_SUPABASE_URL
sync: false
- key: NEXT_PUBLIC_SUPABASE_ANON_KEY
sync: false
- key: SUPABASE_SERVICE_ROLE_KEY
sync: false
- key: REDIS_URL
sync: false
- key: JWT_SECRET
sync: false
- key: CORS_ORIGIN
value: https://groqtales.xyz
- key: API_VERSION
value: v1
# SDK Service (for future SDK implementations)
- type: web
name: groqtales-sdk-service
env: node
region: oregon
plan: starter
buildCommand: npm install && npm run build:sdk
startCommand: npm run start:sdk
healthCheckPath: /healthz
envVars:
- key: NODE_ENV
value: production
- key: PORT
value: 3002
- key: GROQ_API_KEY
sync: false
- key: SDK_VERSION
value: v1.0.0
- key: CORS_ORIGIN
value: https://groqtales.xyz
# Background Worker Service
- type: worker
name: groqtales-worker
env: node
region: oregon
plan: starter
buildCommand: npm install
startCommand: npm run start:worker
envVars:
- key: NODE_ENV
value: production
- key: GROQ_API_KEY
sync: false
- key: NEXT_PUBLIC_SUPABASE_URL
sync: false
- key: NEXT_PUBLIC_SUPABASE_ANON_KEY
sync: false
- key: SUPABASE_SERVICE_ROLE_KEY
sync: false
- key: REDIS_URL
sync: false
databases:
# Redis for caching and session management
- name: groqtales-redis
databaseName: groqtales_cache
user: groqtales_user
region: oregon
plan: free