Production deployments pull every service from pinned, registry-hosted images rather than building from source. TheDocumentation 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.
docker-compose.prod.yml file is structurally identical to docker-compose.test.yml, but it is intended for persistent, customer-facing infrastructure where image immutability, TLS enforcement, and secret hygiene are mandatory. Before you start, review the security callouts in this guide carefully.
Prerequisites
- Docker 24.0 or later with the Compose v2 plugin
- Access to the
jjsotom2k4/image registry - A valid
VERSIONtag for the release you are deploying - TLS certificate and private key for the Fleet server
- A FleetDM license key (required for premium features)
Steps
Copy and configure the production environment file
src/ai-sentinel/.env and set the VERSION variable to the image tag you want to deploy. This value pins both jjsotom2k4/ollama-ai and jjsotom2k4/postgres-ai to the same release:Generate the Fleet server private key
Fleet requires a random base64-encoded 32-byte secret. Generate one and add it to
.env:Place TLS certificates for Fleet
Fleet’s Compose configuration mounts certificates from Then set the corresponding environment variables in
src/ai-sentinel/certs/. Place your CA-signed certificate and key there:.env:Key differences from development
| Aspect | Development | Production |
|---|---|---|
| Ollama image | Built from ./ollama context | jjsotom2k4/ollama-ai:${VERSION} |
| PostgreSQL image | Built from ./postgres context | jjsotom2k4/postgres-ai:${VERSION} |
VERSION variable | Not required | Required |
| TLS | Optional (self-signed acceptable) | Required (CA-signed certificate) |
| Secrets | Can use placeholder values | Must use strong, unique secrets |
Health check endpoints
All three stateful services expose health checks that Docker monitors automatically. You can also query Fleet directly:Production-specific environment variables
The following variables have particular security implications in production. See Environment variables reference for descriptions of every variable.| Variable | Notes |
|---|---|
VERSION | Required. Pins Ollama and PostgreSQL to a specific registry release. |
FLEET_SERVER_TLS | Set to true. Disabling TLS in production exposes the Fleet API over plain HTTP. |
FLEET_SERVER_CERT | Container path to the CA-signed TLS certificate. |
FLEET_SERVER_KEY | Container path to the TLS private key. |
FLEET_SERVER_PRIVATE_KEY | Generate with openssl rand -base64 32. Rotate on any suspected exposure. |
FLEET_LICENSE_KEY | Your FleetDM license. Required for premium features. |
FLEET_SESSION_DURATION | Controls how long authenticated sessions remain valid. |
FLEET_VULNERABILITIES_PERIODICITY | How often Fleet scans for vulnerabilities in the enrolled fleet. |