Docker n8n WHMCS module
A module for WHMCS that uses n8n workflows to deploy the n8n service using Docker.
- Description
- What is n8n
- Changelog
- Installation and configuration guide
- Basic concepts and requirements
- WHMCS setup (install/update)
- Preparing Docker Server
- Setting up n8n workflow
- Add server
- Product Configuration
- Metric Billing
- Email Template (puqDockerN8N Welcome Email)
- Email Template (puqDockerN8N Update Email)
- Email Template (puqDockerN8N Notification disk limit)
- Admin Area
- Client Area
Description
Docker n8n module WHMCS
Order now | Download | FAQ | n8n
Before you start, it is important to read and familiarize yourself with the following articles at this link:
https://doc.puq.info/books/docker-modules
The WHMCS Docker n8n module is designed for automated provisioning and management of n8n instances on a Docker server. It seamlessly integrates with WHMCS, allowing businesses to sell and manage n8n services efficiently.
Key Features
🚀 Automated Container Management
- Automatic creation of an n8n container upon service order.
- Automated package upgrades and administrator password reset.
🔒 Service Control & Security
- Service suspension and reactivation.
- Full termination of services when needed.
🛠️ Advanced Diagnostic Tools
- Built-in tools for diagnosing and managing containers.
🌍 Multilingual Support
- Supports multiple languages, including Arabic, Azerbaijani, Catalan, Chinese, Croatian, Czech, Danish, Dutch, English, Estonian, Farsi, French, German, Hebrew, Hungarian, Italian, Macedonian, Norwegian, Polish, Romanian, Russian, Spanish, Swedish, Turkish, and Ukrainian.
⚙️ Fully Customizable Workflows
- Uses n8n workflows to automate processes, allowing full customization for business-specific needs.
System Requirements
To run the WHMCS Docker n8n module, ensure you have:
✅ WHMCS version 8+
✅ An n8n server for workflow automation
✅ A server with Docker installed for container management
Installation & Setup
1️⃣ Environment Preparation
- Install WHMCS 8+.
- Set up an n8n server for automation workflows.
- Ensure Docker is installed and running.
2️⃣ Module Installation
- Upload and activate the WHMCS Docker n8n module.
- Configure the module settings to connect with your Docker server and n8n workflows.
3️⃣ Workflow Customization
- Utilize n8n workflows to automate service provisioning and management.
- Modify workflows as needed for custom business logic.
4️⃣ Testing & Deployment
- Perform a test order to verify automatic container creation.
- Check all service management functions (suspension, unlocking, termination).
Why Choose This Module?
✅ Seamless automation – Reduces manual work and speeds up service deployment.
✅ Highly customizable – Modify workflows to fit any business model.
✅ User-friendly – Integrated within WHMCS with a simple setup process.
This module makes selling and managing n8n instances through WHMCS easy, automated, and flexible! 🚀
What is n8n
Docker n8n module WHMCS
Order now | Download | FAQ | n8n
n8n is an open-source, workflow automation platform designed to simplify and streamline processes by integrating different services, APIs, and applications. It provides an intuitive and customizable way to automate repetitive tasks, connect systems, and create complex workflows without writing a single line of code.
Key Features of n8n:
-
Open-Source and Self-Hosted
One of the standout features of n8n is that it is completely open-source. This means that you have full control over your workflows and data. You can host n8n on your own servers or use it in cloud environments, ensuring maximum flexibility and customization to fit your business needs. -
Drag-and-Drop Interface
n8n provides a user-friendly drag-and-drop interface that allows you to create workflows visually. This makes it easy for both technical and non-technical users to design automation processes. With just a few clicks, you can integrate different services, set triggers, and map out complex logic in your workflows. -
Wide Integration Support
n8n supports integrations with over 200 different apps and services, including popular tools like Google Sheets, Slack, GitHub, and Salesforce, as well as hundreds of APIs. This extensive range of integrations means that n8n can be used in virtually any industry, whether it’s automating business processes, synchronizing data, or managing communications. -
Powerful Workflow Logic
n8n allows you to design workflows with powerful logic capabilities. You can use conditional statements, loops, data transformation, and even error handling within your workflows. This enables the creation of sophisticated automations that can handle a wide range of tasks, from simple data transfers to complex multi-step processes. -
Self-Hosting and Privacy
With n8n, you have the option to host your workflows on your own infrastructure, giving you full control over the data and ensuring privacy. This is particularly important for businesses that require compliance with data protection regulations or have sensitive information that should not leave their environment. -
Scalability
n8n can scale with your business. Whether you're running a few simple automations or thousands of complex workflows, n8n’s architecture supports scaling horizontally. You can easily add more workers to handle increased load or deploy it in a distributed setup to ensure high availability. -
Version Control and Collaboration
n8n allows you to use version control for your workflows, making it easy to track changes and collaborate with team members. You can export workflows, share them with others, and keep a history of changes for better collaboration and version management. -
Extensible with Custom Nodes
One of n8n's greatest strengths is its extensibility. If the integrations you need aren’t available out of the box, you can easily create your own custom nodes using JavaScript. This makes n8n adaptable to almost any business need, no matter how niche.
Why Choose n8n?
n8n stands out in the world of workflow automation because it offers a powerful and flexible solution that is both user-friendly and highly customizable. As an open-source tool, n8n provides a level of control and privacy that is hard to find in many commercial automation platforms. Its extensive integrations, scalability, and easy-to-use interface make it suitable for businesses of all sizes, from startups to large enterprises.
Moreover, n8n’s self-hosting option means that you can have full control over your automations, ensuring that your sensitive data stays within your network, which is crucial for businesses with privacy concerns.
Use Cases for n8n
n8n can be used across various industries and use cases, such as:
- Automating Business Processes: Streamline tasks like invoice generation, data entry, or project management.
- Data Synchronization: Sync data between various platforms such as CRM, databases, and marketing tools.
- API Integration: Automate interactions between different services without manually coding complex API requests.
- Custom Workflows: Build and automate workflows specific to your business, such as custom notifications, alerts, and reporting systems.
- Customer Communication: Automate email, SMS, or chat notifications to improve customer engagement.
Conclusion
n8n provides a flexible, powerful, and open-source alternative to commercial workflow automation platforms. With its user-friendly interface, broad integration options, and robust logic capabilities, it enables users to automate tasks across various applications with minimal effort. Whether you need simple automations or complex, multi-step workflows, n8n offers an easy way to automate, save time, and increase efficiency within your business.
Changelog
Docker n8n module WHMCS
Order now | Download | FAQ | n8n
v1.0 Released 17-03-2025
First version
Installation and configuration guide
Basic concepts and requirements
Docker n8n module WHMCS
Order now | Download | FAQ | n8n
Before you start, it is important to read and familiarize yourself with the following articles at this link:
https://doc.puq.info/books/docker-modules
The WHMCS Docker n8n module is part of the WHMCS Docker module series developed by PUQcloud. This module enables service providers to offer n8n Docker containers as a service to their clients, allowing for seamless automation and integration.
The system consists of three core components:
🖥️ WHMCS Module
The core component, installed in WHMCS, manages service provisioning and automation from the WHMCS side.
📡 Debian 12 Server
A server running Debian 12 with the following pre-installed:
✅ Docker – For container management
✅ SQLite3 – For lightweight database operations
✅ Apache2-utils – For authentication and performance enhancements
We have prepared instructions for installing and configuring Docker
https://doc.puq.info/books/docker-modules/page/installing-docker-for-puqcloud-modules
🔗 n8n Server
This server facilitates communication between the WHMCS module and the Docker server, ensuring smooth workflow execution.
To explore n8n’s full potential, visit the official n8n website for documentation, tutorials, and community support.
Key Features & Concepts
⚙️ Workflow Automation
n8n provides a graphical workflow builder, allowing users to automate various tasks, such as:
✔️ Sending notifications
✔️ Configuring firewalls on external routers
✔️ Managing DNS settings
✔️ Custom automation processes tailored to specific needs
🔄 Flexibility & Customization
The module offers personalized settings and supports elastic automation, giving clients full control over their n8n workflows.
WHMCS setup (install/update)
Docker n8n module WHMCS
Order now | Download | FAQ | n8n
Module is coded ionCube v13
Supported php version:
- php 7.4 WHMCS 8.11.0 -
- php 8.1 WHMCS 8.11.0 +
- php 8.2 WHMCS 8.11.0 +
To install and update a module, you must perform one and the same action.
1. Download the latest version of the module.
PHP 8.2
wget http://download.puqcloud.com/WHMCS/servers/PUQ_WHMCS-Docker-n8n/php82/PUQ_WHMCS-Docker-n8n-latest.zip
PHP 8.1
wget http://download.puqcloud.com/WHMCS/servers/PUQ_WHMCS-Docker-n8n/php81/PUQ_WHMCS-Docker-n8n-latest.zip
PHP 7.4
wget http://download.puqcloud.com/WHMCS/servers/PUQ_WHMCS-Docker-n8n/php74/PUQ_WHMCS-Docker-n8n-latest.zip
All versions are available via link: https://download.puqcloud.com/WHMCS/servers/PUQ_WHMCS-Docker-n8n/
2. Unzip the archive with the module.
unzip PUQ_WHMCS-Docker-n8n-latest.zip
3. Copy and Replace "puqDockerN8N" from "PUQ_WHMCS-Docker-n8n" to "WHMCS_WEB_DIR/modules/servers/"
Preparing Docker Server
Docker n8n module WHMCS
Order now | Download | FAQ | n8n
To install the Docker server for this module, please follow the instructions at the following link:
https://doc.puq.info/books/docker-modules/page/installing-docker-for-puqcloud-modules
Setting up n8n workflow
Docker n8n module WHMCS
Order now | Download | FAQ | n8n
Overview
The Docker n8n WHMCS module uses a specially designed workflow for n8n to automate deployment processes. The workflow provides an API interface for the module, receives specific commands, and connects via SSH to a server with Docker installed to perform predefined actions.
Prerequisites
- You must have your own n8n server.
- Alternatively, you can use the official n8n cloud installations available at: n8n Official Site
Installation Steps
Install the Required Workflow on n8n
You have two options:
Option 1: Use the Latest Version from the n8n Marketplace
- The latest workflow templates for our modules are available on the official n8n marketplace.
- Visit our profile to access all available templates: PUQcloud on n8n
Option 2: Manual Installation
- Each module version comes with a workflow template file.
- You need to manually import this template into your n8n server.
n8n Workflow API Backend Setup for WHMCS/WISECP
Configure API Webhook and SSH Access
- Create a Basic Auth Credential for the Webhook API Block in n8n.
- Create an SSH Credential for accessing a server with Docker installed.
Modify Template Parameters
In the Parameters block of the template, update the following settings:
server_domain
– Must match the domain of the WHMCS/WISECP Docker server.clients_dir
– Directory where user data related to Docker and disks will be stored.mount_dir
– Default mount point for the container disk (recommended not to change).
Do not modify the following technical parameters:
screen_left
screen_right
Deploy-docker-compose
In the Deploy-docker-compose element, you have the ability to modify the Docker Compose configuration, which will be generated in the following scenarios:
- When the service is created
- When the service is unlocked
- When the service is updated
nginx
In the nginx element, you can modify the configuration parameters of the web interface proxy server.
- The main section allows you to add custom parameters to the server block in the proxy server configuration file.
- The main_location section contains settings that will be added to the location / block of the proxy server configuration. Here, you can define custom headers and other parameters specific to the root location.
Bash Scripts
Management of Docker containers and all related procedures on the server is carried out by executing Bash scripts generated in n8n. These scripts return either a JSON response or a string.
- All scripts are located in elements directly connected to the SSH element.
- You have full control over any script and can modify or execute it as needed.
Add server
Docker n8n module WHMCS
Order now | Download | FAQ | n8n
Add a new server to the system WHMCS.
System Settings->Servers->Add New Server
- Enter the correct Name and Hostname
Attention: Important Information
The hostname field represents the actual domain of the server running Docker and must match the server_domain parameter in the n8n workflow. If they do not match, communication will not function correctly.
Additionally, this domain must be configured so that all its subdomains resolve to the IP address of the server running Docker.
In the Server Details section, select the "PUQ Docker n8n" module and enter the correct username and password for the API endpoint in the n8n workflow.
Additionally, in the Access Hash field, insert the URL of the API entry point for the n8n workflow.
Product Configuration
Docker n8n module WHMCS
Order now | Download | FAQ | n8n
Add new product to WHMCS
System Settings->Products/Services->Create a New Product
In the Module settings section, select the "PUQ Docker n8n" module
- License key – A pre-purchased license key for the "PUQ Docker n8n" module. For the module to work correctly, the key must be active
- Disk space – defines the allocated disk size for the Docker container.
- CPU – sets the CPU usage limit for the Docker container.
- RAM – specifies the amount of RAM allocated to the Docker container.
- Link to instruction – URL to a guide that will be displayed in the client panel if provided.
- Main domain – defines the primary domain for the web interface of the application. If not set, the main domain will be taken from the hostname parameter in the server settings.
- Subdomain – a personal subdomain assigned to each service. If left empty or if the subdomain is already taken, it will be automatically generated in the format {user_id}-{service_id}.
-
Supported Macros for App Subdomain:
- {user_id} – Client ID
- {service_id} – Service ID
- {random_digit_x} – Random number (x defines the length)
- {random_letter_x} – Random letter (x defines the length)
- {unixtime} – Unix timestamp
- {year}, {month}, {day}, {hour}, {minute}, {second} – Date and time values
- Notification, used disk space X % – The percentage value that sets the threshold for the container's disk space usage will trigger a notification message to the client once the threshold is reached.
- Notification disk limit email template – The email template for the notification that will be sent when the threshold is reached.
Metric Billing
Docker n8n module WHMCS
Order now | Download | FAQ | n8n
To bill certain metrics separately, you can use the standard WHMCS Metric Billing mechanism.
To configure it, you need to enable the required metrics and set the desired prices. Metrics work based on the standard WHMCS mechanism, the description of which can be found here:
https://docs.whmcs.com/products/configuration-options/usage-billing/
Email Template (puqDockerN8N Welcome Email)
Docker n8n module WHMCS
Order now | Download | FAQ | n8n
Create an email template for customer notifications.
System Settings->Email Templates->Create New Email Template
- Email Type: Product/service
- Unique Name: puqDockerN8N Welcome Email
Subject:
n8n Order Information
Body:
Dear {$client_name},
Your order has been accepted for implementation.
Product/Service: {$service_product_name}
Payment Method: {$service_payment_method}
Amount: {$service_recurring_amount}
Billing Cycle: {$service_billing_cycle}
Next Due Date: {$service_next_due_date}
The installation and setup of your n8n instance is in progress.
Within the next 4 minutes, you will be able to use your n8n instance.
Upon your first login, you will need to create an account.
Here is the link to your n8n server.
https://{$service_domain}/
Thank you for choosing us.
{$signature}
Email Template (puqDockerN8N Update Email)
Docker n8n module WHMCS
Order now | Download | FAQ | n8n
Create an email template for customer notifications.
System Settings->Email Templates->Create New Email Template
- Email Type: Product/service
- Unique Name: puqDockerN8N Update Email
Subject:
n8n Update Information
Body:
Dear {$client_name},
Your instance is currently being updated.
You will be able to use your n8n server again within 3 minutes.
Here is the link to your n8n server.
https://{$service_domain}/
Thank you for choosing us.
{$signature}
Email Template (puqDockerN8N Notification disk limit)
Docker n8n module WHMCS
Order now | Download | FAQ | n8n
Create an email template for customer notifications.
System Settings->Email Templates->Create New Email Template
- Email Type: Product/service
- Unique Name: puqDockerN8N Notification disk limit
Subject:
Disk space usage {$disk_used_percentage}%
Body:
Dear {$client_name},
We want to inform you that your n8n service is running low on disk space.
Please take action to prevent service interruptions.
Service Details:
Product/Service: {$service_product_name}
Domain: {$service_domain}
Total Disk Space: {$disk_total}
Used Disk Space: {$disk_used} ({$disk_used_percentage}%)
Consider freeing up space or upgrading your plan if needed.
{$signature}
Admin Area
Product Information
Docker n8n module WHMCS
Order now | Download | FAQ | n8n
Admin Panel – Container Management Overview
The admin panel is structured into two main sections with additional control buttons for container management.
Control Buttons
- Container Start / Stop – Start or stop the running container.
- Mount Disk / Unmount Disk – Attach or detach the container's disk to the host system. This modifies the fstab file to ensure proper mounting.
Container Status & Resource Monitoring
- Status – Displays the current state (Running / Stopped).
- Name – Unique identifier and domain of the container.
- CPU Usage – Shows current CPU load.
- Memory Usage – Displays RAM consumption in real-time.
- Disk IO & Disk Mounted – Tracks disk input/output operations.
- Disk File – Indicates the actual disk image size.
- Network IO – Shows network traffic statistics.
- Log Button – Loads and displays the container logs for debugging and monitoring.
Application Information
- Version – Displays the installed application version.
- Owner – Administrator managing the application.
- Users – List of assigned users with access to the application.
Metric Statistics
Client Area
Home screen
Docker n8n module WHMCS
Order now | Download | FAQ | n8n
Client Area Overview – Logical Structure
The main screen of the client area is divided into three logical sections:
This clear structure ensures that users have quick access to their application, real-time monitoring of resource usage, and essential management functions in one place.
IP Access Control
Docker n8n module WHMCS
Order now | Download | FAQ | n8n
In the client area, the client can configure access to their resource by entering allowed IP addresses in the appropriate section on the Restrict by IP page.
If no IP addresses are specified, access is open to all IP addresses.
Reinstall
Docker n8n module WHMCS
Order now | Download | FAQ | n8n
The client has the option to fully reinstall the application, which will result in complete data loss.
This action can be performed on the Reinstall page, which also includes protection against accidental reinstallation.
Metrics
Docker n8n module WHMCS
Order now | Download | FAQ | n8n
If you use metrics for application traffic billing, the Metrics tab will display the usage statistics for the metrics.