mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-06-26 18:26:38 +00:00
75 lines
2.8 KiB
YAML
75 lines
2.8 KiB
YAML
# render.yaml - Revised for Bolt.DIY Docker Deployment on Render
|
|
|
|
services:
|
|
- type: web # Specifies a web service
|
|
name: bolt-diy # Service name on Render (user can change during setup)
|
|
env: docker # Use the Dockerfile in the repository
|
|
# repo: automatically inferred from the Deploy to Render button link
|
|
dockerfilePath: ./Dockerfile # Path to the Dockerfile relative to repo root
|
|
dockerContext: . # Build context is the repository root
|
|
plan: free # Use Render's free instance type (note limitations like inactivity sleeps)
|
|
autoDeploy: false # IMPORTANT: Prevent auto-deploys for button users on repo push
|
|
|
|
envVars:
|
|
# --- Core Configuration ---
|
|
- key: PORT # Render uses this to route traffic and check health
|
|
value: "5173" # CRITICAL: Must match the EXPOSE port in Dockerfile
|
|
|
|
# --- API Keys & Secrets (User will be prompted via 'sync: false') ---
|
|
# Verify these key names match what Bolt.DIY expects!
|
|
- key: OPENAI_API_KEY
|
|
sync: false
|
|
- key: ANTHROPIC_API_KEY
|
|
sync: false
|
|
- key: GOOGLE_GENERATIVE_AI_API_KEY # For Gemini
|
|
sync: false
|
|
- key: OPEN_ROUTER_API_KEY
|
|
sync: false
|
|
- key: GROQ_API_KEY
|
|
sync: false
|
|
- key: MISTRAL_API_KEY
|
|
sync: false
|
|
- key: DEEPSEEK_API_KEY
|
|
sync: false
|
|
- key: COHERE_API_KEY
|
|
sync: false
|
|
- key: HuggingFace_KEY # Check if this exact name is correct
|
|
sync: false
|
|
- key: XAI_API_KEY
|
|
sync: false
|
|
- key: TOGETHER_API_KEY
|
|
sync: false
|
|
- key: PERPLEXITY_API_KEY
|
|
sync: false
|
|
|
|
# --- AWS Bedrock Keys (Separate for clarity) ---
|
|
- key: AWS_ACCESS_KEY_ID
|
|
sync: false
|
|
- key: AWS_SECRET_ACCESS_KEY
|
|
sync: false
|
|
- key: AWS_REGION # e.g., us-east-1
|
|
sync: false
|
|
|
|
# --- Custom Base URLs (User will be prompted) ---
|
|
- key: OLLAMA_API_BASE_URL # For local Ollama instances
|
|
sync: false
|
|
- key: LMSTUDIO_BASE_URL # For local LMStudio instances (verify key name)
|
|
sync: false
|
|
- key: OPENAI_LIKE_BASE_URL # For other OpenAI-compatible endpoints (verify key name)
|
|
sync: false
|
|
- key: TOGETHER_API_BASE_URL # If needed separately from key
|
|
sync: false
|
|
|
|
# --- Optional Runtime Flags (Set defaults or let user override if needed) ---
|
|
# Example: Provide a default, but allow override via Render dashboard later if needed
|
|
# - key: VITE_LOG_LEVEL
|
|
# value: "info"
|
|
# - key: DEFAULT_NUM_CTX
|
|
# value: "4096" # Example default
|
|
|
|
# --- Internal Flags (Already set in Dockerfile, no need to sync) ---
|
|
- key: NODE_ENV
|
|
value: production
|
|
- key: RUNNING_IN_DOCKER
|
|
value: "true"
|