All checks were successful
Publish FaceAI Container / publish (push) Successful in 13m22s
- Added configuration options for audit database path and retention days in backend and processor. - Integrated audit logging in server and worker processes to track search requests, completions, and failures. - Created utility functions for reading and parsing audit logs in end-to-end tests. - Updated Docker Compose files to include audit database configuration. - Added new tests to verify audit log entries for successful and no-results searches.
88 lines
No EOL
2.8 KiB
YAML
88 lines
No EOL
2.8 KiB
YAML
services:
|
|
faceai:
|
|
image: forgejo.maddoscientisto.net/maddo/faceai-client:latest
|
|
container_name: regalami-faceai
|
|
restart: unless-stopped
|
|
command:
|
|
- node
|
|
- docker/run-with-log-file.mjs
|
|
- /data/logs/backend.log
|
|
- npm
|
|
- run
|
|
- start
|
|
environment:
|
|
NODE_ENV: production
|
|
PORT: 3001
|
|
FACEAI_FRONTEND_URL: https://ai.regalamiunsorriso.it
|
|
FACEAI_PUBLIC_BASE_URL: https://ai.regalamiunsorriso.it
|
|
FACEAI_LEGACY_RETURN_URL: https://www.regalamiunsorriso.it/faceai_return.php
|
|
FACEAI_LEGACY_HOME_URL: https://www.regalamiunsorriso.it
|
|
FACEAI_SHARED_SECRET: disagio-spaghetti-science-lol-boh
|
|
FACEAI_SESSION_COOKIE: rus_faceai_session
|
|
FACEAI_REDIS_URL: redis://redis:6379
|
|
FACEAI_QUEUE_NAME: faceai-searches
|
|
FACEAI_RUNTIME_ROOT: /data/runtime
|
|
FACEAI_UPLOAD_ROOT: /data/runtime/uploads
|
|
FACEAI_LOG_ROOT: /data/logs
|
|
FACEAI_AUDIT_DB_PATH: /data/logs/faceai-audit.sqlite
|
|
FACEAI_AUDIT_RETENTION_DAYS: 730
|
|
FACEAI_PKL_ROOT: /data/pkl
|
|
FACEAI_ENABLE_LOCAL_LEGACY_STATIC: 0
|
|
volumes:
|
|
- /mnt/storage/data/faceai/runtime:/data/runtime
|
|
- /mnt/storage/data/faceai/logs:/data/logs
|
|
- /mnt/nas12/nas2/RUS:/data/pkl:ro
|
|
ports:
|
|
- "3001:3001"
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:3001/health | grep -q '\"ok\":true'"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 6
|
|
start_period: 20s
|
|
depends_on:
|
|
redis:
|
|
condition: service_healthy
|
|
|
|
processor:
|
|
image: forgejo.maddoscientisto.net/maddo/faceai-processor:latest
|
|
container_name: regalami-faceai-processor
|
|
restart: unless-stopped
|
|
command:
|
|
- node
|
|
- docker/run-with-log-file.mjs
|
|
- /data/logs/processor.log
|
|
- npm
|
|
- run
|
|
- start:processor
|
|
environment:
|
|
NODE_ENV: production
|
|
FACEAI_REDIS_URL: redis://redis:6379
|
|
FACEAI_QUEUE_NAME: faceai-searches
|
|
FACEAI_RUNTIME_ROOT: /data/runtime
|
|
FACEAI_LOG_ROOT: /data/logs
|
|
FACEAI_AUDIT_DB_PATH: /data/logs/faceai-audit.sqlite
|
|
FACEAI_AUDIT_RETENTION_DAYS: 730
|
|
FACEAI_PKL_ROOT: /data/pkl
|
|
FACEAI_MATCHER_BINARY: /app/bin/face_matcher
|
|
FACEAI_MATCHER_TOLERANCE: 0.5
|
|
FACEAI_WORKER_CONCURRENCY: 8
|
|
FACEAI_WORKER_TIMEOUT_MS: 300000
|
|
volumes:
|
|
- /mnt/storage/data/faceai/runtime:/data/runtime
|
|
- /mnt/storage/data/faceai/logs:/data/logs
|
|
- /mnt/nas12/nas2/RUS:/data/pkl:ro
|
|
depends_on:
|
|
redis:
|
|
condition: service_healthy
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
container_name: regalami-faceai-redis
|
|
restart: unless-stopped
|
|
command: redis-server --appendonly no
|
|
healthcheck:
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
interval: 5s
|
|
timeout: 3s
|
|
retries: 12 |