# Render deployment configuration for ALwrity Backend
services:
  - type: web
    name: alwrity-backend
    env: python
    buildCommand: pip install -r requirements.txt && python -m spacy download en_core_web_sm && python -m nltk.downloader punkt_tab stopwords averaged_perceptron_tagger
    startCommand: python start_alwrity_backend.py --production
    healthCheckPath: /health
    envVars:
      - key: DEPLOY_ENV
        value: render
      - key: HOST
        value: 0.0.0.0
      - key: PORT
        value: 8000
      - key: RELOAD
        value: false
      - key: LOG_LEVEL
        value: INFO
      - key: PYTHONPATH
        value: /opt/render/project/src/backend
      - key: TMPDIR
        value: /tmp
    # Add your environment variables here:
    # - key: GEMINI_API_KEY
    #   value: your_gemini_key_here
    # - key: OPENAI_API_KEY
    #   value: your_openai_key_here
    # - key: ANTHROPIC_API_KEY
    #   value: your_anthropic_key_here
    # - key: MISTRAL_API_KEY
    #   value: your_mistral_key_here
    # - key: TAVILY_API_KEY
    #   value: your_tavily_key_here
    # - key: EXA_API_KEY
    #   value: your_exa_key_here
    # - key: SERPER_API_KEY
    #   value: your_serper_key_here
    # - key: CLERK_SECRET_KEY
    #   value: your_clerk_secret_here
    # - key: GSC_REDIRECT_URI
    #   value: https://your-frontend.vercel.app/gsc/callback
    # - key: WORDPRESS_REDIRECT_URI
    #   value: https://your-frontend.vercel.app/wp/callback
    # - key: WIX_REDIRECT_URI
    #   value: https://your-frontend.vercel.app/wix/callback
