render.yaml 506 B

12345678910111213141516
  1. services:
  2. - type: web
  3. name: ec-render-app
  4. runtime: python
  5. repo: https://github.com/<your-username>/<repo-name>
  6. scaling:
  7. minInstances: 1
  8. maxInstances: 3
  9. targetMemoryPercent: 60 # optional if targetCPUPercent is set
  10. targetCPUPercent: 60 # optional if targetMemory is set
  11. buildCommand: pip install -r requirements.txt
  12. startCommand: uvicorn app:app --host 0.0.0.0
  13. envVars:
  14. - key: OPENAI_API_KEY
  15. value: sk-xxx
  16. autoDeploy: false # optional