n8n is de centrale workflow automation engine van ASD-PMA. Het verbindt alle services en automatiseert processen via visuele workflows.
| Eigenschap | Waarde |
|---|---|
| Poort | 9108 |
| Container | asd-n8n |
| Watchdog | asd-n8n-watchdog |
| Health endpoint | /healthz |
| Categorie | Core |
| Classificatie | Essential |
| Type | Beschrijving | Voorbeeld |
|---|---|---|
| Webhook | Trigger via HTTP | Redmine ticket notificatie |
| Cron | Scheduled execution | Daily digest |
| Event | Service events | Zammad ticket created |
| Manual | Handmatig starten | Data import |
De n8n-watchdog monitort:
n8n biedt een REST API voor workflow management.
# Via settings
# Settings > API > Generate API Key
# Health check
curl -s "http://localhost:9108/healthz" | jq .
# Lijst workflows (met API key)
curl -s "http://localhost:9108/api/v1/workflows" \
-H "X-N8N-API-KEY: YOUR_API_KEY" | jq .
# Activeer workflow
curl -X PATCH "http://localhost:9108/api/v1/workflows/1" \
-H "X-N8N-API-KEY: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"active": true}'
# Execute workflow
curl -X POST "http://localhost:9108/api/v1/workflows/1/activate" \
-H "X-N8N-API-KEY: YOUR_API_KEY"
| Command | Omschrijving |
|---|---|
just start n8n |
Start n8n + watchdog |
just stop n8n |
Stop n8n |
just status n8n |
Bekijk status |
just logs n8n |
Bekijk logs |
just info n8n |
Service info |
just backup n8n |
Backup workflows |
just n8n-health |
Health check |
just n8n-workflows |
Lijst workflows |
[Service] Action Description{
"name": "[Redmine] Ticket Created Notification",
"nodes": [
{
"type": "n8n-nodes-base.webhook",
"name": "Redmine Webhook"
},
{
"type": "n8n-nodes-base.set",
"name": "Format Message"
},
{
"type": "n8n-nodes-base.mattermost",
"name": "Post to Mattermost"
}
]
}
| Workflow | Trigger | Actie |
|---|---|---|
| Redmine Ticket Notify | Webhook | Post naar #tickets |
| Daily Standup Reminder | Cron 9:00 | Post naar #dev |
| Zammad Ticket Created | Webhook | Sync naar Redmine |
| Error Alert | Error trigger | Post naar #alerts |
| Wiki.js Backup | Cron 2:00 | Export pages |
Let op: n8n SSO (OIDC/SAML) is alleen beschikbaar in de Enterprise versie.
sso:
type: enterprise-only
notes: Community edition uses built-in auth
# Check execution logs
just logs n8n | grep -i error
# Via UI: Executions > Failed
# Test webhook
curl -X POST "http://localhost:9108/webhook/test" \
-H "Content-Type: application/json" \
-d '{"test": true}'
# Check n8n logs
docker logs asd-n8n --tail 50 | grep webhook
# Container stats
docker stats asd-n8n
# Restart met meer memory
docker update --memory 2g asd-n8n
# Watchdog logs
docker logs asd-n8n-watchdog --tail 50
# Check watchdog health
docker exec asd-n8n-watchdog cat /tmp/health_status
n8n slaat credentials encrypted op. Bij backup:
# Backup met credentials
just backup n8n
# Credentials worden encrypted in:
# /n8n-data/.n8n/credentials.json