Every db.connect() opened a new Postgres connection; with DB_POOL=on each process keeps a psycopg_pool pool (DB_POOL_SIZE, default 20, 10 s acquisition timeout, dropped connections replaced) with the same commit/rollback contract. Production stays off until switched in Portainer; the local stack and CI run with it on. Two nested acquisitions that ran on every board load and in audits now reuse the caller's connection. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Production deployment files
The DTF application is one Portainer-owned Docker Swarm stack. Gitea builds,
tests, scans, and publishes the two application images, then calls the stack's
Portainer webhook. Start with the short operator guide in ../PORTAINER.md.
- The deployed stack is the repository's
docker-compose.yml, not a file here. Dockerfile.apiandDockerfile.web— prebuilt registry images.portainer.env.example— non-secret Portainer variables.production_preflight.py— fail-closed application/configuration validator.PRODUCTION_CHECKLIST.md— production evidence checklist.
The current application remains deliberately blocked from production because real adapters and Docker-secret file loading are absent and current validation base images have unresolved HIGH/CRITICAL findings. No real provider or production service has been configured or contacted.