-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
101 lines (97 loc) · 3.44 KB
/
render.yaml
File metadata and controls
101 lines (97 loc) · 3.44 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
# Render Blueprint: Blog Thumbnail Generator
# Note: Workflows (workflow-python, workflow-ts) are deployed separately via Render Workflows
projects:
- name: blog-thumbnail-generator-with-workflows
environments:
- name: production
services:
- type: web
name: blog-thumb-frontend
runtime: static
rootDir: frontend
buildCommand: npm install && npm run build
staticPublishPath: dist
routes:
- type: rewrite
source: /*
destination: /index.html
envVars:
- key: VITE_API_HOST
fromService:
name: blog-thumb-api-ts # Change to blog-thumb-api-python if using Python
type: web
property: host
- type: web
name: blog-thumb-api-ts
runtime: node
plan: starter
rootDir: typescript/api-ts
buildCommand: npm install && npm run build
startCommand: npm run start
envVars:
- key: PORT
value: 8080
- key: RENDER_API_KEY
sync: false
- key: WORKFLOW_SLUG
sync: false # e.g., "blog-thumb-workflow-ts"
- key: OPENAI_API_KEY
sync: false # For content moderation (optional)
- key: MINIO_ENDPOINT
fromService:
name: minio-server
type: web
envVarKey: RENDER_EXTERNAL_URL
- key: MINIO_ACCESS_KEY
fromService:
name: minio-server
type: web
envVarKey: MINIO_ROOT_USER
- key: MINIO_SECRET_KEY
fromService:
name: minio-server
type: web
envVarKey: MINIO_ROOT_PASSWORD
- key: MINIO_BUCKET
value: thumbnails
- key: MINIO_PUBLIC_BASE_URL
fromService:
name: minio-server
type: web
envVarKey: RENDER_EXTERNAL_URL
# MinIO object storage for thumbnail images
- type: web
name: minio-server
runtime: image
plan: starter
image:
url: docker.io/minio/minio:latest
healthCheckPath: /minio/health/live
dockerCommand: minio server /data --address 0.0.0.0:$PORT --console-address 0.0.0.0:9001
autoDeploy: false
disk:
name: minio-data
mountPath: /data
sizeGB: 10
envVars:
- key: MINIO_ROOT_USER
generateValue: true
- key: MINIO_ROOT_PASSWORD
generateValue: true
- key: MINIO_BROWSER
value: "off"
# Python API (uncomment to use instead of TypeScript)
# - type: web
# name: blog-thumb-api-python
# runtime: python
# plan: starter
# rootDir: python/api-python
# buildCommand: pip install -r requirements.txt
# startCommand: uvicorn main:app --host 0.0.0.0 --port $PORT
# envVars:
# - key: PORT
# value: 8000
# - key: RENDER_API_KEY
# sync: false
# - key: WORKFLOW_SLUG
# sync: false