feat: WhatsApp bridge con Baileys directo — QR funcional

Reemplaza Evolution API con bridge Node.js propio usando Baileys.
QR se genera en ~10 segundos. Auto-reply con chatbot IA.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-05 04:02:16 +00:00
parent 5f92fe83ba
commit e43894b7a4
7 changed files with 255 additions and 672 deletions

View File

@@ -1,23 +1,26 @@
version: '3'
services:
evolution-api:
image: atendai/evolution-api:latest
container_name: evolution-api
restart: always
ports:
- "8080:8080"
network_mode: host
environment:
- SERVER_URL=http://localhost:8080
- SERVER_PORT=8080
- AUTHENTICATION_API_KEY=nexus-evolution-key-2026
- DATABASE_ENABLED=true
- DATABASE_PROVIDER=postgresql
- DATABASE_CONNECTION_URI=postgresql://nexus:nexus_autoparts_2026@host.docker.internal:5432/evolution_api
- DATABASE_CONNECTION_URI=postgresql://nexus:nexus_autoparts_2026@localhost:5432/evolution_api
- DATABASE_CONNECTION_CLIENT_NAME=evolution
- QRCODE_LIMIT=10
- WEBHOOK_GLOBAL_URL=http://host.docker.internal:5001/pos/api/whatsapp/webhook
- WEBHOOK_GLOBAL_URL=http://localhost:5001/pos/api/whatsapp/webhook
- WEBHOOK_GLOBAL_ENABLED=true
- WEBHOOK_EVENTS_MESSAGES_UPSERT=true
- CACHE_REDIS_ENABLED=false
- CACHE_LOCAL_ENABLED=true
- LOG_LEVEL=DEBUG
volumes:
- evolution_data:/evolution/instances
volumes:
evolution_data: