| `ARA_PORT` | `8000` | Port gunicorn listens on |
| `ARA_GUNICORN_WORKERS` | `4` | Number of gunicorn worker processes |
| `ARA_PAGE_SIZE` | `100` | Results per page from the API |
### Maintenance / pruning
| Variable | Default | Description |
|---|---|---|
| `ARA_PRUNE_DAYS` | `30` | Delete playbooks older than this many days |
| `ARA_PRUNE_CRON` | `0 2 * * *` | Cron schedule for pruning (daily at 02:00) |
The prune job uses `ara playbook prune --client offline` so it accesses the database directly without going through the HTTP server. Output is forwarded to `docker logs`.
---
## Docker Compose — MariaDB
See [`docker-compose.yml`](docker-compose.yml) for a ready-to-use stack with MariaDB.
```bash
# Copy and edit the environment file
cp .env.example .env
# Start the stack
docker compose up -d
# View logs
docker compose logs -f ara
```
---
## Manual pruning
```bash
# Preview what would be deleted (no --confirm = dry run)
docker exec ara ara playbook prune --client offline --days 30
# Actually delete
docker exec ara ara playbook prune --client offline --days 30 --confirm
```
---
## Configuring Ansible to report to ARA
Install the ARA callback plugin on your Ansible controller: