Files
site_aegisone/py_service/docker-compose.yml
T
angel 72b6879f4b 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
2026-05-29 02:30:30 +03:00

47 lines
1.3 KiB
YAML

services:
postgres:
image: postgres:16-alpine
container_name: aegisone-postgres
network_mode: host
environment:
POSTGRES_DB: aegisone
POSTGRES_USER: aegisone
POSTGRES_PASSWORD: aegisone_pass
volumes:
- 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
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U aegisone -h localhost"]
interval: 10s
timeout: 5s
retries: 5
app:
build:
context: .
network: host
container_name: aegisone-app
network_mode: host
environment:
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
volumes:
- ./docs:/app/docs
- ./permissions:/app/permissions
- ./uploads:/app/uploads
- ./CHANGELOG.md:/app/CHANGELOG.md
- ./version.txt:/app/version.txt
restart: unless-stopped
volumes:
pgdata: