-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathrender.yaml
More file actions
57 lines (49 loc) · 2.32 KB
/
Copy pathrender.yaml
File metadata and controls
57 lines (49 loc) · 2.32 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
# ── Render Blueprint Config ──────────────────────────────────────────
# Docs: https://render.com/docs/blueprint-spec
#
# This file enables Infrastructure-as-Code deployment via Render's
# Blueprint system. Push to GitHub and Render auto-deploys.
#
# Uses Docker mode (our existing Dockerfile). The dockerCommand
# overrides the Dockerfile CMD for Telegram mode.
# ──────────────────────────────────────────────────────────────────────
services:
- type: web
name: neuron-os
runtime: image
# Point to our existing Dockerfile
dockerfilePath: ./Dockerfile
# Default: run the Telegram bot (controlled from your phone 24/7)
dockerCommand: bun run index.ts telegram
# To run the API server with the process supervisor (auto-restart on crash):
# dockerCommand: bun run index.ts serve --supervisor
#
# To run the API server directly (no supervisor watchdog):
# dockerCommand: bun run index.ts serve
# Health check endpoint (the API health endpoint is always available)
healthCheckPath: /api/v1/health
# Auto-scaling: keep 1 instance always warm
plan: starter # free tier: starter, paid: professional
scaling:
minInstances: 1
maxInstances: 1
# ── Environment Variables ───────────────────────────────────────
# Set these in the Render Dashboard (they contain secrets):
#
# TELEGRAM_BOT_TOKEN — from @BotFather (required for Telegram)
# ANTHROPIC_API_KEY — your AI provider key (required for /ask, /agent, /plan)
# OPENAI_API_KEY — alternative AI provider
# DEEPSEEK_API_KEY — alternative AI provider
# TELEGRAM_ALLOWED_USERS — optional, comma-separated Telegram user IDs
#
envVars:
- key: AEGIS_LOG_LEVEL
value: info
- key: PORT
value: 8080
# Secrets — set these in the Render Dashboard (sync: false means
# they must be provided manually, not committed to git)
- key: TELEGRAM_BOT_TOKEN
sync: false
- key: ANTHROPIC_API_KEY
sync: false