-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
50 lines (44 loc) · 1.49 KB
/
Copy pathrender.yaml
File metadata and controls
50 lines (44 loc) · 1.49 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
# render.yaml — StockWise deployment config for Render
# Deploy: connect your GitHub repo to Render and it picks this up automatically
# Docs: https://render.com/docs/render-yaml-spec
services:
- type: web
name: stockwise-app
runtime: docker
region: singapore # closest to India; or use oregon/frankfurt
plan: starter # $7/mo — needed for always-on scheduler
# change to free if you don't need auto-sell
dockerfilePath: ./Dockerfile
# Health check — Render uses this to confirm deployment succeeded
healthCheckPath: /health
envVars:
- key: PORT
value: "8080"
- key: MODEL_EXPIRY_DAYS
value: "7"
- key: AUTO_SELL_INTERVAL
value: "300"
# ── Set these as secrets in the Render dashboard (not here) ──
# FLASK_SECRET_KEY
# DATABASE_URL (full Supabase connection string, or use DB_* vars below)
# DB_HOST
# DB_PORT
# DB_NAME
# DB_USER
# DB_PASSWORD
# DB_SSLMODE
# TWILIO_ACCOUNT_SID
# TWILIO_AUTH_TOKEN
# TWILIO_SMS_NUMBER
# TWILIO_WHATSAPP_NUMBER
# TWELVE_DATA_KEY
# NEWS_API_KEY
# Optional: add a Render Disk for persistent model cache
# Requires paid plan. Remove this block if using free tier.
# disk:
# name: stockwise-model-cache
# mountPath: /data
# sizeGB: 3
# envVars (add when disk is enabled):
# - key: MODEL_CACHE_DIR
# value: /data/model_cache