37 lines
960 B
YAML
37 lines
960 B
YAML
services:
|
|
# Backend API Service
|
|
- type: web
|
|
name: tradingagents-backend
|
|
runtime: python
|
|
region: singapore
|
|
plan: free
|
|
buildCommand: pip install -r requirements.txt
|
|
startCommand: uvicorn app.main:app --host 0.0.0.0 --port $PORT
|
|
envVars:
|
|
- key: PYTHON_VERSION
|
|
value: 3.11
|
|
- key: OPENAI_API_KEY
|
|
sync: false
|
|
- key: ALPHA_VANTAGE_API_KEY
|
|
sync: false
|
|
- key: TRADINGAGENTS_RESULTS_DIR
|
|
value: /opt/render/project/src/results
|
|
healthCheckPath: /health
|
|
rootDir: backend
|
|
|
|
# Frontend Web Service
|
|
- type: web
|
|
name: tradingagents-frontend
|
|
runtime: node
|
|
region: singapore
|
|
plan: free
|
|
buildCommand: npm install && npm run build
|
|
startCommand: npm start
|
|
envVars:
|
|
- key: NEXT_PUBLIC_API_URL
|
|
value: https://tradingagents-backend.onrender.com
|
|
- key: NODE_ENV
|
|
value: production
|
|
healthCheckPath: /
|
|
rootDir: frontend
|