fix(cleanup): resolve 9 low-priority issues (P34-P42)
Check Cross-Plugin Imports / check (push) Has been cancelled

P34: Remove test_sample plugin from production code
P35: Remove CompanyContact=None dead code from contact.py
P36: Change Plugin.config from Text to JSONB (model + migration 0117 + service)
P37: Add AI comment about workspace overengineering in workspace.py
P38: Add container resource limits to docker-compose.yaml
P39: Guest TTL 1800 not found — already migrated to regular users
P40: Add AI comment about missing IP/Device binding in session.py
P41: Fix Redis healthcheck to use auth password
P42: RLS migration history comment already present in alembic/env.py
This commit is contained in:
Agent Zero
2026-08-06 13:43:47 +02:00
parent 0eb6d7621e
commit 20288da567
10 changed files with 63 additions and 119 deletions
+9 -1
View File
@@ -38,6 +38,8 @@ services:
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- pgdata:/var/lib/postgresql/data
mem_limit: 512m
cpus: '1.0'
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-crm_user} -d ${POSTGRES_DB:-crm_db}"]
interval: 10s
@@ -51,8 +53,10 @@ services:
command: redis-server --requirepass ${REDIS_PASSWORD:?REDIS_PASSWORD is required}
volumes:
- redisdata:/data
mem_limit: 128m
cpus: '0.5'
healthcheck:
test: ["CMD-SHELL", "redis-cli ping || exit 1"]
test: ["CMD-SHELL", "redis-cli -a $${REDIS_PASSWORD} ping || exit 1"]
interval: 10s
timeout: 5s
retries: 5
@@ -91,6 +95,8 @@ services:
ADMIN_PASSWORD: ${ADMIN_PASSWORD:-Admin123!}
volumes:
- storage:/data/storage
mem_limit: 512m
cpus: '1.0'
healthcheck:
test: ["CMD", "curl", "-fsS", "http://localhost:8000/api/v1/health"]
interval: 30s
@@ -130,6 +136,8 @@ services:
SMTP_TLS: ${SMTP_TLS:-true}
volumes:
- storage:/data/storage
mem_limit: 256m
cpus: '0.5'
healthcheck:
test: ["CMD-SHELL", "python3 -c \"import redis,os; r=redis.from_url(os.environ.get('REDIS_URL','redis://localhost:6379/0')); print('ok' if r.ping() else 'fail')\" || exit 1"]
interval: 30s