Spaces:
Configuration error
Configuration error
|
Download docs/deployment.md from varshithreddy1807/aria: direct link, hf CLI and curl.
- Browser
- Download file 2.05 kB
-
https://huggingface.co/spaces/varshithreddy1807/aria/resolve/main/docs/deployment.md
- Command line
-
hf download hf://spaces/varshithreddy1807/aria/docs/deployment.md
-
curl -L -o deployment.md https://huggingface.co/spaces/varshithreddy1807/aria/resolve/main/docs/deployment.md
2.05 kB
Deployment Guide
This guide details steps for deploying ARIA in production.
Docker Deployment (Recommended)
Production deployments use a preconfigured multi-stage Docker build that bundles the static Astro frontend and serves it through the FastAPI backend server.
1. Configure the Environment
Ensure your production host has Docker and Docker Compose installed.
Create a .env file containing secrets and credentials:
GITHUB_TOKEN=your_github_token_here
DEEPSEEK_API_KEY=your_nvidia_nim_api_key_here
APP_ENV=production
LOG_FORMAT=json
LOG_LEVEL=INFO
2. Launch using Docker Compose
Deploy the app in detached daemon mode:
docker compose -f docker-compose.prod.yml up -d --build
This command:
- Builds the production image containing backend binaries and compiled frontend assets.
- Mounts named volumes to persist index states, graphs, database files, and cloned repositories.
- Exposes the unified web application on port
8001.
Persistent Volumes
To prevent losing analyzed repository data during container updates, ensure the following mounts are persisted:
repo-intel-data: Maps to/app/data(relational stores, Chroma DB files, caching directories).repo-intel-cloned: Maps to/root/.repo_intelligence/cloned_repos(cloned repository directories).
Production Security & Rate Limiting
The application embeds built-in middlewares configurable via settings:
- Allowed Hosts: Configure
ALLOWED_HOSTSto limit server access to known hostnames. - CORS Origins: Set
FRONTEND_URLto your production frontend domain. The middleware usesallow_credentials=True, which requires a specific origin — a wildcard will be rejected by browsers. - Rate Limiting: Adjust
RATE_LIMIT_PER_MINUTEto prevent denial-of-service (default: 60 requests/min)./healthand/metricsare exempt. - GZip Compression: Automatically compresses payload data over 1000 bytes.
- Log Format: Set
LOG_FORMAT=jsonfor structured log aggregation in production.