forked from Cyber-warrior-01/GroqTales
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
83 lines (79 loc) · 1.98 KB
/
render.yaml
File metadata and controls
83 lines (79 loc) · 1.98 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
# 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: /api/health
envVars:
- key: NODE_ENV
value: production
- key: PORT
value: 3001
- key: GROQ_API_KEY
sync: false
- key: OPENAI_API_KEY
sync: false
- key: MONGODB_URI
sync: false
- key: REDIS_URL
sync: false
- key: JWT_SECRET
sync: false
- key: CORS_ORIGIN
value: https://groq-tales.vercel.app/
- key: API_VERSION
value: v1
domains:
- groqtales-api.onrender.com
# 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: /sdk/health
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://groq-tales.vercel.app/
domains:
- groqtales-sdk.onrender.com
# 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: MONGODB_URI
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: starter