-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrender.yaml
More file actions
114 lines (94 loc) · 4.22 KB
/
render.yaml
File metadata and controls
114 lines (94 loc) · 4.22 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
102
103
104
105
106
107
108
109
110
111
112
113
114
# =============================================================================
# Render Blueprint for Habla Hermano FastAPI Application
# =============================================================================
# Documentation: https://render.com/docs/blueprint-spec
#
# Deployment Instructions:
# 1. Connect your GitHub repository to Render.com
# 2. Create a new "Blueprint" and point to this render.yaml
# 3. Set the required environment variables in Render dashboard:
# - ANTHROPIC_API_KEY: Your Anthropic API key for LLM
# 4. Deploy!
#
# Manual Deployment:
# render blueprint apply
# =============================================================================
services:
# ---------------------------------------------------------------------------
# Primary Web Service - FastAPI Application
# ---------------------------------------------------------------------------
- type: web
name: habla-hermano
runtime: python
plan: free
region: oregon
branch: main
# Auto-deploy on push to main branch
autoDeploy: true
# Build Configuration
# Install uv package manager, then sync dependencies (production only)
buildCommand: |
pip install uv &&
uv sync --frozen --no-dev --no-install-project
# Start Command
# Run uvicorn with production settings
# Note: Render provides $PORT automatically
startCommand: |
uv run uvicorn src.api.main:app --host 0.0.0.0 --port $PORT --workers 1
# Health Check Configuration
# Render will poll this endpoint to verify service health
healthCheckPath: /health
# Environment Variables
envVars:
# -----------------------------------------------------------------------
# Required: API Keys (set via Render Dashboard - never commit secrets!)
# -----------------------------------------------------------------------
- key: ANTHROPIC_API_KEY
sync: false # Must be set manually in Render dashboard
# -----------------------------------------------------------------------
# Application Configuration
# -----------------------------------------------------------------------
- key: DEBUG
value: "false"
- key: HOST
value: "0.0.0.0"
# -----------------------------------------------------------------------
# LLM Configuration
# -----------------------------------------------------------------------
- key: LLM_MODEL
value: "claude-haiku-4-5-20251001"
- key: LLM_TEMPERATURE
value: "0.7"
# -----------------------------------------------------------------------
# Database Configuration - Supabase PostgreSQL
# -----------------------------------------------------------------------
# All Supabase credentials must be set via Render dashboard (secrets)
- key: SUPABASE_URL
sync: false # Must be set manually in Render dashboard
- key: SUPABASE_ANON_KEY
sync: false # Must be set manually in Render dashboard
- key: SUPABASE_SERVICE_KEY
sync: false # Must be set manually in Render dashboard
- key: SUPABASE_DB_URL
sync: false # Must be set manually in Render dashboard
# -----------------------------------------------------------------------
# Security Configuration
# -----------------------------------------------------------------------
- key: SECRET_KEY
generateValue: true # Render auto-generates a strong random value
- key: ENCRYPTION_SALT
generateValue: true # Render auto-generates a unique salt
- key: CORS_ALLOWED_ORIGINS
sync: false # Set to your domain, e.g. "https://habla-hermano.onrender.com"
# -----------------------------------------------------------------------
# Voice Features (Optional)
# -----------------------------------------------------------------------
- key: DEEPGRAM_API_KEY
sync: false # Optional: set for voice STT/TTS features
# -----------------------------------------------------------------------
# Python Runtime Configuration
# -----------------------------------------------------------------------
- key: PYTHON_VERSION
value: "3.12"
- key: PYTHONUNBUFFERED
value: "1"