Nuevas Épicas (MCH-029 a MCH-033): - Infraestructura SaaS multi-tenant - Auth Social (OAuth2) - Auditoría Empresarial - Feature Flags - Onboarding Wizard Nuevas Integraciones (INT-010 a INT-014): - Email Providers (SendGrid, Mailgun, SES) - Storage Cloud (S3, GCS, Azure) - OAuth Social - Redis Cache - Webhooks Outbound Nuevos ADRs (0004 a 0011): - Notifications Realtime - Feature Flags Strategy - Storage Abstraction - Webhook Retry Strategy - Audit Log Retention - Rate Limiting - OAuth Social Implementation - Email Multi-provider Actualizados: - MASTER_INVENTORY.yml - CONTEXT-MAP.yml - HERENCIA-SIMCO.md - Mapas de documentación Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
97 lines
1.7 KiB
Markdown
97 lines
1.7 KiB
Markdown
# Docker Setup - MiChangarrito
|
|
|
|
## Overview
|
|
|
|
Configuracion de Docker para desarrollo y produccion.
|
|
|
|
## Servicios
|
|
|
|
| Servicio | Puerto | Descripcion |
|
|
|----------|--------|-------------|
|
|
| backend | 3141 | API NestJS |
|
|
| web | 3140 | Dashboard React |
|
|
| mcp-server | 3142 | Gateway LLM |
|
|
| whatsapp-service | 3143 | Bot WhatsApp |
|
|
| postgres | 5432 | Base de datos |
|
|
| redis | 6379 | Cache y queues |
|
|
|
|
## Desarrollo Local
|
|
|
|
```bash
|
|
# Iniciar todos los servicios
|
|
docker-compose up -d
|
|
|
|
# Ver logs
|
|
docker-compose logs -f backend
|
|
|
|
# Detener
|
|
docker-compose down
|
|
```
|
|
|
|
## docker-compose.yml
|
|
|
|
```yaml
|
|
version: '3.8'
|
|
services:
|
|
backend:
|
|
build: ./apps/backend
|
|
ports:
|
|
- "3141:3141"
|
|
environment:
|
|
- NODE_ENV=development
|
|
- DATABASE_URL=postgresql://postgres:postgres@postgres:5432/michangarrito
|
|
depends_on:
|
|
- postgres
|
|
- redis
|
|
|
|
web:
|
|
build: ./apps/web
|
|
ports:
|
|
- "3140:3140"
|
|
depends_on:
|
|
- backend
|
|
|
|
mcp-server:
|
|
build: ./apps/mcp-server
|
|
ports:
|
|
- "3142:3142"
|
|
depends_on:
|
|
- backend
|
|
|
|
whatsapp-service:
|
|
build: ./apps/whatsapp-service
|
|
ports:
|
|
- "3143:3143"
|
|
environment:
|
|
- WHATSAPP_TOKEN=${WHATSAPP_TOKEN}
|
|
depends_on:
|
|
- backend
|
|
- redis
|
|
|
|
postgres:
|
|
image: postgres:16
|
|
environment:
|
|
- POSTGRES_DB=michangarrito
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_PASSWORD=postgres
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
ports:
|
|
- "6379:6379"
|
|
|
|
volumes:
|
|
postgres_data:
|
|
```
|
|
|
|
## Produccion
|
|
|
|
TODO: Documentar configuracion de produccion con Kubernetes
|
|
|
|
---
|
|
|
|
**Ultima actualizacion**: 2026-01-10
|
|
**Estado**: Placeholder - Completar con detalles del proyecto
|