Dec 02, 2025
Ariffud M. & Valentinas C.
8min Read
n8n is a workflow automation tool that lets you connect apps, automate tasks, and build complex workflows without coding. While it offers cloud-hosted plans, self-hosting n8n gives you full control over data and can be cheaper than managed solutions.
Coolify simplifies self-hosting by providing a user-friendly platform for deploying apps like n8n. With its one-click deployment feature, you can quickly set up n8n and manage it alongside other apps and services from a single control panel.
This guide will show you how to install n8n with Coolify on a virtual private server (VPS). By the end, you’ll have a fully functional n8n instance running through Coolify, so you can completely control your automation workflows.
Before setting up n8n using Coolify, prepare a VPS, dedicated server, or virtual machine with SSH access to install Coolify. Your system should meet Coolify’s minimum hardware requirements:
Hostinger’s Coolify VPS hosting is a great choice for running Coolify, offering optimized performance and seamless integration within the platform.
For most use cases, the KVM 2 plan, starting at 0/month with 2 CPU cores, 8 GB of RAM, and 100 GB of NVMe disk space, should be enough for hosting Coolify and n8n.
But if you plan to run resource-heavy workflows or host additional projects alongside n8n, consider a higher-tier plan. You can also easily upgrade your VPS later if needed.
Once your server is ready, set up Coolify on your system. You’ll also need to install Docker because Coolify relies on it.
If you choose Hostinger’s Coolify service, the platform and all of the required components, including Docker, come preinstalled. This saves time and reduces the risk of installation errors from manual setup via the command line.

You can also assign a custom domain name to your n8n instance instead of using a randomly generated one. This step is optional but makes it easier to access your n8n’s dashboard.
If you decide to use a domain, point your domain to your server’s IP address via DNS settings. Then, set up an SSL certificate to secure data transmission between your browser and n8n.
In this section, we’re going to cover all the necessary steps to install n8n on the platform, from setting up Coolify to adding new users to your projects.
As previously explained, Coolify comes preinstalled on Hostinger’s Coolify hosting plans. But if you use our regular VPS service or have changed your operating system, you can still reinstall Coolify as a template with these steps:


Wait for the installation to complete, which takes about five minutes. Once done, scroll up and hit Manage panel to access the Coolify dashboard.

On your first visit, you’ll be prompted to create an owner account and complete the onboarding. Follow the on-screen instructions until you reach the dashboard.

If you’re still unsure about using Coolify to set up n8n, check out our in-depth comparison to see how it stacks up against Dokploy in terms of ease of use, supported integrations, performance, and scalability.
Now it’s time to deploy n8n through the Coolify dashboard. Here’s how:



- N8N_SECURE_COOKIE=false

Wait for the process to complete. If you see the Container n8n-[generated name] Started line, your deployment was successful. Click Close (X) to exit the logs.
![The Container n8n-[generated name] Started line in Coolify's Service Startup logs](https://www.hostinger.com/tutorials/wp-content/uploads/sites/2/2025/03/coolify-service-startup-container-n8n-started-1024x675.png)
Coolify makes hosting n8n easy, but if you prefer to run it directly on your server without Coolify, follow our guide to install n8n on a VPS.
After successfully hosting n8n on your own server via Coolify, the next step is to access your new project and start using n8n. Here are the instructions:


Now, you can start building workflows for various tasks, such as automating content generation with multiple AI agents.
If you need inspiration, explore what you can automate with n8n, from streamlining social media management to automating database backups.
We also suggest integrating n8n with different apps and services to expand your automation capabilities.
To keep n8n running smoothly on Coolify, regularly monitor logs and track resource usage. This helps detect issues, optimize performance, and determine when to upgrade your server. Here’s how:



Currently, Coolify doesn’t provide detailed resource usage metrics, such as CPU load. Hostinger VPS customers can monitor their server’s resource stats via hPanel:

As mentioned before, you can upgrade your VPS to a higher plan if it consistently exceeds its resource limits. To do so, go to Overview → Plan details → Upgrade and follow the subsequent instructions.

If you want to collaborate on your n8n instance or scale your setup across multiple projects and teams, you can invite others to use Coolify. Follow these steps:



Even with a smooth setup, you may encounter issues while running n8n on Coolify. Here are some common problems and their solutions.
n8n blocks insecure connections
By default, n8n enforces secure connections via SSL. If you didn’t set up an SSL certificate for your domain or forgot to set the N8N_SECURE_COOKIE variable to false during deployment, you’ll see an error when trying to access the n8n dashboard:

To fix this, add the N8N_SECURE_COOKIE variable to the Docker Compose file, as explained in step two.
Then, save your changes and hit Restart in the top-right corner to apply them. After restarting, try opening your n8n dashboard again.
Unhealthy n8n container
If Coolify marks your n8n container as Degraded (unhealthy), it could be due to an improper update without a restart or accidental deletion.

To diagnose the issue:

n8n deployment failures
Deployment failures usually happen due to misconfigurations in the Docker Compose file. Fortunately, Coolify highlights the exact line where the issue occurs so you can fix it accordingly.

If you still need assistance, Hostinger VPS users can ask Kodee, our AI Assistant, to analyze the issue and generate a fixed configuration.
To use Kodee:
Hey Kodee, my Docker Compose file is showing an error. Can you fix it? [Insert the file content here]

To maintain a secure and reliable n8n instance, follow these best practices when hosting it on Coolify.
Secure access with SSH keys and a firewall
Using SSH keys and a firewall helps protect your server from unauthorized access.
Here’s how to add an SSH key via Coolify:

If you set up Coolify on Hostinger’s VPS, you can also add your generated public key with these steps:

To further secure your server, configure a firewall using Uncomplicated Firewall (UFW):
docker ps
Note down the ports and protocols used by n8n, PostgreSQL, and other services.
sudo apt update sudo apt install ufw sudo ufw enable
sudo ufw allow 5678/tcp
Regularly back up files
Regular backups prevent data loss and help restore your n8n instance in case of failure. To back up your Coolify database:


If you use Hostinger VPS, you can back up your entire server via hPanel by accessing Backups & Monitoring → Snapshots & Backups.

When managing n8n on Coolify, Hostinger VPS hosting users can ask Kodee to do these best practices, including setting up an SSH key, adjusting a new firewall rule, and scheduling a backup, via chat to streamline the process. Simply enter your prompt and Kodee will handle the task for you.
Keep n8n and Coolify updated
Running the latest versions of n8n and Coolify ensures you get security patches and performance improvements.
You can update n8n on Coolify by going to your n8n Production page, then choosing Advanced → Pull Latest Images & Restart.

Meanwhile, to update Coolify:

Using Coolify to self-host n8n lets you set up the automation tool in minutes while maintaining complete control over your workflow data and privacy.
Here’s a quick recap of the steps to deploy n8n on a VPS via Coolify:
Once everything runs smoothly, we suggest securing access with SSH keys and a firewall, regularly backing up files to prevent data loss, and keeping both n8n and Coolify updated to the latest versions for optimal performance.
If you still have questions about installing n8n on Coolify, feel free to ask in the comments section below!
To deploy n8n using Coolify, first install Coolify on your VPS. Then, create a new project, add an n8n service, and configure its environment variables. Once set up, hit Deploy to launch n8n. You can then manage your instance through Coolify’s dashboard.
Yes, Coolify lets you customize n8n settings through environment variables. You can specify database connections, webhook settings, and authentication options. You can also assign a custom domain to n8n in Coolify for easier access.
After deployment, open the generated random URL in Coolify to access n8n. If you’ve pointed a custom domain to your server’s IP address, you can use that instead. Create an owner account in n8n and start building workflows from its dashboard.