Add n8n service to docker-compose

- docker-compose: n8n container (port 5678) with PostgreSQL backend
- n8n/: 7 TypeScript workflow files + import script + README
- Workflows: 4 CMS BI data ingestion + 3 email reports
- README: updated with n8n env vars and port
- .dockerignore: exclude import.sh from container
This commit is contained in:
Jetour BI
2026-06-18 20:52:36 +00:00
parent 3f6824d86c
commit e56d72c644
12 changed files with 464 additions and 3 deletions

View File

@@ -80,11 +80,11 @@ Dashboard handles all SMTP send + recipient resolution.
## Docker Deployment
```bash
# Build and start (app + PostgreSQL)
# Build and start (app + PostgreSQL + n8n)
docker compose up -d
# Set a custom DB password
DB_PASSWORD=mysecretpassword docker compose up -d
# Set passwords
DB_PASSWORD=*** N8N_ENCRYPTION_KEY=*** docker compose up -d
# View logs
docker compose logs -f app
@@ -111,10 +111,12 @@ docker compose down -v
| `SMTP_USER` | (empty) | SMTP username |
| `SMTP_PASS` | (empty) | SMTP password |
| `SMTP_FROM` | `reports@jetour.mu` | From address |
| `N8N_ENCRYPTION_KEY` | `change-me-to-a-random-string` | n8n encryption key |
### Ports
| Service | Port | Description |
|---------|------|-------------|
| Dashboard | `8765` | Web UI |
| n8n | `5678` | Workflow automation |
| PostgreSQL | `5433` | Mapped from container `5432` |