- Dockerfile (uv-based) + docker-compose.yml (3 services) - CLI tool 'da' with commands: auth, sync, query, status, admin, diagnose, skills - Scheduler sidecar service (replaces systemd timers) - pyproject.toml for uv distribution - Built-in skills (setup, troubleshoot) for AI agents - 17 CLI tests, 75 total tests passing
1.3 KiB
1.3 KiB
Setup — Complete guide for deploying a new instance
Prerequisites
- Docker and Docker Compose installed
- Domain name pointing to server IP (for SSL)
- Data source credentials (Keboola token OR BigQuery service account)
Steps
-
Clone the repository:
git clone <repo-url> cd data-analyst -
Create configuration:
cp config/instance.yaml.example config/instance.yaml # Edit instance.yaml with your settings -
Create environment file:
cp config/.env.template .env # Fill in: JWT_SECRET_KEY, KEBOOLA_STORAGE_TOKEN (or BIGQUERY_PROJECT), etc. -
Start services:
docker compose up -d -
Verify health:
da status --server http://your-server:8000 -
Create first admin user:
da login --email admin@company.com --server http://your-server:8000 da admin add-user admin@company.com --role admin -
Trigger initial data sync:
da admin trigger-sync -
Verify data:
da status
Troubleshooting
- Cannot connect: Check
docker compose ps, verify port 8000 is exposed - Auth fails: Verify JWT_SECRET_KEY is set in .env
- No data: Check data source credentials, run
da diagnose