The development environment is designed for engineers working on NextAudit AI itself. Ollama and PostgreSQL are built from local source directories instead of pulling pre-published images, so changes to the AI model configuration or database schema take effect immediately after a rebuild. All other services—Flowise, n8n, MySQL, Redis, and Fleet—use upstream images just as they do in production.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Kevin2523/nextAuditAi/llms.txt
Use this file to discover all available pages before exploring further.
Steps
Copy environment variables
Copy the development example file and fill in the required values:Open
The
.env.example template files are distributed on the develop branch. If you are working from main, create src/ai-sentinel/.env manually using the Environment variables reference.src/ai-sentinel/.env and set at minimum the variables listed in the key variables section below.Create the certs directory and add Fleet TLS certificates
Fleet expects its certificate and key at paths mounted from For a self-signed certificate suitable for local development:
src/ai-sentinel/certs/. Create the directory and place your certificate files there:Start the stack
ollama and postgres images from their local contexts on first run. Subsequent starts reuse the cached layers unless you pass --build.Services and default ports
The port each service listens on is controlled by environment variables so you can remap them in.env without editing the Compose file.
| Service | Container port | Host port env var | Default internal port |
|---|---|---|---|
| Ollama | 11434 | OLLAMA_PORT | 11434 |
| PostgreSQL | 5432 | POSTGRES_PORT | 5432 |
| Flowise | FLOWISE_PORT | FLOWISE_PORT | — |
| n8n | 5678 | N8N_PORT | 5678 |
| MySQL | 3306 | (hardcoded 3306) | 3306 |
| Redis | 6379 | (hardcoded 6379) | 6379 |
| Fleet UI/API | FLEET_SERVER_PORT | FLEET_SERVER_PORT | — |
Key environment variables
These variables must be set before starting the stack. Refer to Environment variables reference for the full list.| Variable | Description |
|---|---|
FLEET_SERVER_PRIVATE_KEY | Random 32-byte base64 secret. Generate with openssl rand -base64 32. |
FLEET_SERVER_TLS | Set to true to enable HTTPS on the Fleet API. |
FLEET_SERVER_CERT | Path inside the container to the Fleet TLS certificate (/fleet/fleet.crt). |
FLEET_SERVER_KEY | Path inside the container to the Fleet TLS key (/fleet/fleet.key). |
MYSQL_ROOT_PASSWORD | Root password for the MySQL instance used by Fleet. |
MYSQL_PASSWORD / FLEET_MYSQL_PASSWORD | Matching passwords for the Fleet MySQL user. |
POSTGRES_PASSWORD | Password for the PostgreSQL user shared by Flowise. |
OLLAMA_MODELS | Comma-separated list of models to load on startup. |
The
FLEET_REDIS_ADDRESS and FLEET_MYSQL_ADDRESS values are hardcoded in the Compose file to redis:6379 and mysql:3306 respectively, using Docker’s internal DNS. You do not need to set these in .env.