Files
web/render.yaml
2026-11-06 11:42:34 -05:00

30 lines
1.3 KiB
YAML

# Render Blueprint: one always-on web service, built from web/Dockerfile.
# Render looks for render.yaml at the repo root by default; when you create the
# Blueprint, change the Blueprint path to web/render.yaml (or move this file up a level).
# The database lives elsewhere (Neon / Supabase); paste its URL when Render asks.
services:
- type: web
name: mamadachi
runtime: docker
rootDir: web # only changes under web/ trigger a deploy
dockerfilePath: ./web/Dockerfile # Docker paths are relative to the repo root
dockerContext: ./web
# 0.5 CPU / 512 MB, about $7/mo, never sleeps (formerly called "Starter").
# Don't use "free": it sleeps after 15 min idle and takes ~1 min to wake,
# so the device would sit with its radio on, burning battery, or time out.
plan: 0.5c-512mb
region: ohio # same AWS region as the database (us-east-2)
healthCheckPath: /healthz
autoDeploy: true # every push to the branch deploys
envVars:
- key: APP_ENV
value: production
- key: DATABASE_URL
sync: false # asked for on first deploy: paste the Postgres URL
- key: DASHBOARD_PASSWORD
sync: false
- key: SECRET_KEY
generateValue: true
- key: DEFAULT_TIMEZONE
value: America/New_York