Spaces:
Sleeping
Sleeping
File size: 1,578 Bytes
4a693cf | 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 | ################################################################################
# FILE: backend/render.yaml
# VERSION: 1.0.0 | SYSTEM: Infrastructure as Code (IaC)
################################################################################
#
# This file tells Render exactly how to build your entire stack.
# It creates the Postgres DB, Redis instance, and the FastAPI Web Service
# all connected together automatically. It's basically a setup cheat code.
services:
# 1. The Brain (FastAPI Web Service)
- type: web
name: orbit-api
env: docker # We are using the Dockerfile we just updated
region: frankfurt # Choose a region close to Kenya for better latency (Frankfurt is usually good)
plan: free # Keepin' it free tier for now
envVars:
# Connect the API to the DBs created below
- key: DATABASE_URL
fromDatabase:
name: orbit-db
property: connectionString
- key: REDIS_URL
fromService:
type: redis
name: orbit-redis
property: connectionString
# Add your API keys here (Render will prompt you for these or you can set them in the dashboard later)
# - key: GEMINI_API_KEY
# sync: false
# 2. The Long-Term Memory (PostgreSQL)
- type: pgo
name: orbit-db
plan: free
region: frankfurt
# Render manages the Postgres version automatically
# 3. The Short-Term Memory / Trigger Cache (Redis)
- type: redis
name: orbit-redis
plan: free
region: frankfurt
ipAllowList: [] # Allow internal Render connections only
|