Overview
This template provides a production‑ready n8n instance as a Monk runnable. You can:- Run it directly to get a managed workflow automation platform
- Inherit it in your own infrastructure to add powerful integration and automation capabilities
What this template manages
- n8n server with web UI
- PostgreSQL or SQLite for workflow storage
- Webhook server
- Execution engine
- Web UI on port 5678
Quick start (run directly)
- Load templates
- Run n8n with defaults
- Customize credentials (recommended via inheritance)
variables. Secrets added with monk secrets add will not affect this runnable unless you inherit it and reference those secrets.
- Preferred: inherit and replace variables with
secret("...")as shown below. - Alternative: fork/clone and edit the
variablesinn8n/n8n.yml, thenmonk load MANIFESTand run.
http://localhost:5678 and create your first workflow by clicking ”+ New workflow”.
Configuration
Key variables you can customize in this template:${monk-volume-path}/n8n on the host. When using PostgreSQL, database data is stored under ${monk-volume-path}/postgres.
Use by inheritance (recommended for automation)
Inherit the n8n runnable in your application to add workflow automation capabilities. Example:Ports and connectivity
- Service:
n8non TCP port5678 - Web UI accessible at:
http://\<host>:5678 - Webhooks received at:
http://\<host>:5678/webhook/\<path> - From other runnables in the same process group, use
connection-hostname("\<connection-name>")to resolve the n8n host.
Persistence and configuration
- Data path:
${monk-volume-path}/n8n:/home/node/.n8n - PostgreSQL data path:
${monk-volume-path}/postgres:/var/lib/postgresql/data(when using PostgreSQL) - All workflows, credentials, and execution history are persisted in these volumes.
Features
- Visual Workflow Editor: Drag-and-drop interface
- 200+ Integrations: Apps, databases, APIs, and services
- Custom Nodes: Create your own integrations with JavaScript
- Webhooks: Trigger workflows via HTTP
- Scheduling: Run workflows on a schedule
- Error Workflows: Handle errors with separate workflows
- Credentials Management: Secure storage for API keys and passwords
- Execution History: View and retry past executions
- Self-Hosted: Full control over your data
Available Integrations
Popular nodes include:- Communication: Slack, Discord, Telegram, Email, SMS
- Databases: MySQL, PostgreSQL, MongoDB, Redis
- Cloud: AWS, GCP, Azure
- Storage: Google Drive, Dropbox, S3
- APIs: HTTP Request, Webhook, GraphQL
- Productivity: Google Sheets, Notion, Airtable
- E-commerce: Shopify, WooCommerce, Stripe
- Marketing: Mailchimp, HubSpot, SendGrid
Example Workflow
- Trigger: Webhook receives customer form submission
- Action: Save to Google Sheets
- Action: Send welcome email via SendGrid
- Action: Create Slack notification for team
- Action: Add to CRM (HubSpot/Salesforce)
Use cases
n8n excels at:- Business process automation
- Data synchronization between apps
- Webhook processing
- Scheduled data tasks
- Customer onboarding workflows
- Notification systems
- API integration and orchestration
Security
For production:- Enable basic authentication or OAuth
- Use HTTPS with reverse proxy
- Set strong encryption key
- Use PostgreSQL instead of SQLite
- Regularly backup workflows and credentials
Related templates
- See other templates in this repository for complementary services
- Combine with monitoring tools (
prometheus-grafana/) for observability - Integrate with your application stack as needed
Troubleshooting
- Access n8n UI at
http://localhost:5678 - If you changed
n8n-encryption-keybut the container has existing data, credentials may fail to decrypt. Either reset the data volume or keep the same encryption key. - Ensure the host volumes are writable by the container user.
- Generate encryption key:
- Check workflow execution logs in the n8n UI under “Executions”
- Check container logs:
- For webhook issues, verify
webhook-urlis correctly set and accessible from external services - For credential errors, ensure the encryption key hasn’t changed
- For database issues, verify PostgreSQL connection settings (host, user, password, database)
- Test node connections in workflow editor before saving workflows
- If using PostgreSQL, ensure the database is running and accessible before starting n8n