v1.7.0: refactor max_bot to flat structure, add VCF+UserModel+NLP history context, portal pages and proxy fixes
- Refactored max_bot from nested packages to flat module structure - Q2: Extended BotUser model (patronymic, email, org, address, vcf_raw, contact_hash, phone_verified, email_verified, last_interaction, total_conversations, total_tickets) - Q2: VCF parser (FN, N, TEL, EMAIL, ORG, ADR), upsert on re-contact, NLP history context (_get_user_history_context -> YandexGPT) - Q1: Broadcast preview modal with 10s confirmation timer - Q3: CSS var(--white)->var(--bg-card), var(--text)->var(--text-primary) - Q4: bot_settings showNotification(), editable max_bot_id - Q5: Webhook secret passthrough via X-Max-Bot-Api-Secret - Masking sensitive keys, dialog_cleared handler, migrate via _add_column_if_not_exists() - Rate limit (asyncio.sleep 0.5 per 10), dead code removed, conv.intent context in contact.py - Portal pages: bot_consent, bot_kb (edit), bot_settings, bot_test, bot_tickets, portal_settings - Tests: 21/21 passing, added test_yandex_gpt.py, test_email_sender.py - Deploy: deploy_full.sh, schema.sql, seed_knowledge_base.sql
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:16-alpine
|
||||
container_name: aegisone-postgres
|
||||
network_mode: host
|
||||
environment:
|
||||
POSTGRES_DB: aegisone
|
||||
POSTGRES_USER: aegisone
|
||||
@@ -12,42 +11,36 @@ services:
|
||||
- pgdata:/var/lib/postgresql/data
|
||||
- ./sql/schema_postgresql.sql:/docker-entrypoint-initdb.d/01_schema.sql
|
||||
- ./sql/seed_data.sql:/docker-entrypoint-initdb.d/02_seed.sql
|
||||
ports:
|
||||
- "5432:5432"
|
||||
networks:
|
||||
- aegisone-net
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U aegisone"]
|
||||
test: ["CMD-SHELL", "pg_isready -U aegisone -h localhost"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
app:
|
||||
build: .
|
||||
build:
|
||||
context: .
|
||||
network: host
|
||||
container_name: aegisone-app
|
||||
network_mode: host
|
||||
environment:
|
||||
DATABASE_URL: postgresql+asyncpg://aegisone:aegisone_pass@postgres:5432/aegisone
|
||||
DATABASE_URL: postgresql+asyncpg://aegisone:aegisone_pass@localhost:5432/aegisone
|
||||
SECRET_KEY: ${SECRET_KEY:-change-me-to-random-string}
|
||||
SESSION_TTL: 3600
|
||||
APP_ENV: production
|
||||
LOG_LEVEL: info
|
||||
PORTAINER_URL: ${PORTAINER_URL:-http://81.177.141.34:9001}
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- ./docs:/app/docs
|
||||
- ./permissions:/app/permissions
|
||||
- ./uploads:/app/uploads
|
||||
networks:
|
||||
- aegisone-net
|
||||
- ./CHANGELOG.md:/app/CHANGELOG.md
|
||||
- ./version.txt:/app/version.txt
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
pgdata:
|
||||
|
||||
networks:
|
||||
aegisone-net:
|
||||
driver: bridge
|
||||
|
||||
Reference in New Issue
Block a user