Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 1.58 KB

File metadata and controls

50 lines (35 loc) · 1.58 KB

Deployment Guide

This guide explains how to deploy SQL Auditor to various platforms.

Local Deployment (Docker Compose)

The easiest way to run SQL Auditor locally with full monitoring:

docker-compose up --build

Cloud Deployment

Render (Recommended)

SQL Auditor includes a render.yaml blueprint for one-click deployment.

  1. Fork this repository.
  2. Connect your GitHub account to Render.
  3. Click New -> Blueprint.
  4. Select your fork.
  5. Configure the OPENAI_API_KEY environment variable.
  6. Deploy!

Railway

  1. Install the Railway CLI.
  2. Run railway login.
  3. Run railway link.
  4. Run railway up.

Environment Variables

Variable Description Default
OPENAI_API_KEY Your OpenAI API Key (Required)
SQLAUDITOR_LOG_LEVEL Logging level (DEBUG, INFO, WARN, ERROR) INFO
DEFAULT_DIALECT Default SQL dialect (postgres, sqlite) postgres
SQLAUDITOR_API_KEY API Key for authenticating requests (Generated)
SQLAUDITOR_LLM_BUDGET_MONTHLY Monthly budget for LLM calls 100.0

Monitoring

SQL Auditor exports Prometheus metrics at /metrics. In production, you should point your Prometheus instance to this endpoint.