Cyber Month Offers - Up to 41% OFF

How to Host n8n with Coolify: Step-by-Step Guide

How to Host n8n with Coolify: Step-by-Step Guide
Published on Oct 18, 2026 Updated on Nov 13, 2026

n8n is a workflow automation tool that connects apps and services without requiring a custom application every time. Before n8n, businesses grappled with fragmented systems that couldn't communicate seamlessly without custom code. For example, if a business wanted Salesforce CRM to notify Slack when an account is created/updated, a developer had to write a script for that specific operation. Replicate this across multiple tools, and you get a tangle of one-off integrations, each with its own business logic, authentication handling, and maintenance headache.

n8n streamlines communication across apps by letting you connect services that don't natively connect. It handles multi-stage API integrations where an action in one app triggers a response in another. It’s not just simple triggers: it automates repetitive manual work (e.g., generating reports on a schedule or processing form submissions) and builds logic-driven pipelines.

#Benefits of Self-Hosting n8n on Coolify

Coolify is an open-source, self-hostable platform-as-a-service (PaaS) that acts as a private Heroku version. It provides a simple and intuitive web dashboard for managing applications and services, including Docker, PostgreSQL, SSL/TLS certificates, and Nginx.

While you can still opt for the cloud-hosted version of n8n, self-hosting on Coolify offers advantages like:

  • Cost savings: Coolify installs the Community Edition, which is free with unlimited executions. You pay only for the VPS and domain. There is no execution-count ceiling. Meanwhile, the cloud-hosted version charges per workflow starting at $24/month for the cheapest package.

  • No built-in execution limits: The self-hosted Community Edition lets you run as many workflows as your VPS can handle with no subscription tiers, workflow limits, or throttling. Workflow capacity depends on your server’s compute resources.

  • Data Privacy and Control: All application data, including workflow structures, database connections, API keys, tokens, and encryption secrets, stays on the VPS, guaranteeing data sovereignty and providing you with more overall control over the data in your workflows.

  • Easy deployment/management: Self-hosting n8n typically means installing and managing components like Docker containers, databases, and SSL/TLS certificates. Instead of running shell commands, Coolify lets you manage apps & services from a web dashboard. With a few clicks, your n8n deployment is up and running in seconds.

#Prerequisites

To get started with installing Coolify and n8n, ensure you have the following:

  • A fresh Ubuntu server with SSH access. You can deploy a high-performance, scalable cloud VPS on Cherry Servers to follow the steps outlined. You can find an overview of other supported operating systems here.

  • A minimum of 4 GB RAM and 2 vCPUs is required for installation. You may need more resources depending on your workflow requirements.

  • A minimum of 40 GB of disk space to run both Coolify and n8n.

  • An SSH connection to the VPS with a sudo user configured.

  • A registered domain or subdomain pointing to the server’s public IP. For this guide, we will work with a subdomain named n8n.example.xyz.

Scalable VPS Hosting

Deploy fast, secure VPS for websites, apps, and dev environments. Scale on demand, manage with full root access, and get 24/7 expert support.

#Instructions to Host n8n on Coolify

#Step 1: Update the System

First, log into your server and update the local package index.

Command Line
sudo  apt update

#Step 2: Install Coolify

Coolify provides a one-command installation script that automates the installation. You can run it either as root or a sudo user.

If you are logged in as a sudo user, like in our case, simply pipe the command to sudo as follows:

Command Line
curl -fsSL https://cdn.coollabs.io/coolify/install.sh | sudo bash

Or, if running as a root user, run the command:

Command Line
curl -fsSL https://cdn.coollabs.io/coolify/install.sh | bash

This script will perform the following tasks:

1. Run a quick server check

First, it will detect the Linux distribution and architecture. It also establishes whether the environment is suitable for installing Docker, Coolify, and backend components like Helper and Realtime.

Please be aware that Docker installed via Snap is not supported, as Snap packages run in a sandboxed environment, which breaks volume mounts and other processes.

If Docker was installed as a snap package, you will first need to remove it by running:

Command Line
sudo snap remove docker

2. Install prerequisite packages

Next, the script checks if the required packages are installed. These include wget, openssl, curl, and jq. If they are not installed, the script will automatically install them. If they are already present, the script will skip the installation and move on to the next step.

3. Check if OpenSSH server is installed

Coolify always manages its host system over SSH, using a private key, even in cases when the host is the same machine running the dashboard (localhost) as it needs to establish an internal SSH connection to itself (localhost) using a private key.

4. Check if Docker is installed

The script then checks if Docker is installed. If it's missing, the script will automatically install the latest version from the official Docker repository, create volumes and networks, and print the installed version.

5. Fetch the Required Files

Next, the script will download the files Coolify needs. These include the docker-compose.yml, .env and upgrade.sh files for smoother future upgrades.

6. Check and update environment variables

The script then checks all of Coolify’s environment variables and proceeds to the next step. If the script hits a failure at this step, this implies a missing, empty, or half-written .env file. This is a file that contains crucial security keys used to encrypt credentials (like GitHub tokens, database passwords, and SSH keys) and also ensures the backend, dashboard, and databases talk to each other.

Common causes of this failure include a failed network/DNS connection, blocked GitHub access, or depleted hard disk space. To check the cause of failure, view the log file at /data/coolify/source/installation-<date>.log.

In addition, confirm if the .env file exists (you can find it in the /data/coolify/source/.env path). Ensure it exists and is not empty. With regard to disk space, run the df -Th command to ensure the disk is not full and that you have at least 40 GB of disk space.

Once you have addressed possible causes, rerun the script to fix the problem. If the .env file is broken and you are on a fresh install without any data, delete it and rerun the script to regenerate the data.

7. Check SSH key for localhost access

The script checks for an SSH key with which to access localhost and will generate one if needed. This is required for Coolify to establish an SSH connection to itself (localhost).

Install Coolify

Finally, the script will install Coolify by pulling all of the images and creating the required containers. Once successful, you will see a banner reading "Congratulations" in the terminal, and a URL to access Coolify from a web browser will be provided.

The installation log is saved in the /data/coolify/source/ directory and starts with the installation prefix. A sample log file is the installation-20260917-233747.log file. The notation 20260917-233747 is the timestamp, presented in the YYYYmmdd-hhmmss format.

To check the running containers, you can run the docker ps command:

Command Line
docker ps

You should see six containers have been created and are running perfectly.

#Step 3: Access Coolify UI

  1. To access Coolify’s dashboard, first visit the URL http://server-ip:8000, fill out the required details, and click **” Create Account."

    coolify-create-account-interface

  2. In the next step, simply click ”Continue” to set up a server connection, Docker environment, and project structure.

    coolify-setup-resources-interface

  3. Indicate to Coolify where you’ll be setting everything up. Choose ” This machine” to select the server you are currently working on.

    coolify-add-a-server-this-machine

  4. Complete the setup by clicking ”Create My First Project”.

    coolify-create-my-first-project

  5. Access the Coolify dashboard by clicking ”Go to Dashboard”.

    coolify-setup-complete-go-to-dashboard

#Step 4: Create a New n8n Resource

Once you’re in the dashboard, you can create a new n8n project.

  1. To get started, click the plus sign in the ”My first Project” section.

    coolify-dashboard-create-first-resource

    You will be directed to the ”Resource” page, which will display an array of resources you can deploy.

  2. In the search bar, type ”n8n”. Simply select ”N8N with PostgreSQL” and click the ”Deploy” button to install N8N with PostgreSQL as the database of choice.

    coolify-dashboard-add-n8n-resource

  3. On the ”Service details” page, provide a meaningful description of the service you are deploying. This helps you keep track of the nature of the service you are running.

    Once you’re done, review the information provided and click ”Save changes” at the bottom of the page.

    coolify-dashboard-save-n8n-configuration

  4. To finish up, click ”Actions” in the top-right-hand corner, then select ”Restart” from the dropdown menu.

    coolify-dashboard-restart-services

    Your n8n instance will then be deployed. The logs will be automatically displayed, showing image pulls and the creation of containers and volumes for the n8n, PostgreSQL, and task-runners services. The process will take roughly one to two minutes. Once this is complete, you can close the logs window by clicking the “x” in the top-right corner.

    coolify-dashboard-logs-generated

  5. From the sidebar on the left, click on the Projects icon, and select your n8n project from the dashboard. You should find that your new resource is labeled with the status ”Running”.

    coolify-dashboard-verify-running-service

#Step 5: Configure the Domain

This section assumes that your registered subdomain name points to the server’s IP address. This is crucial so that Let’s Encrypt can verify domain ownership and Traefik (Coolify’s reverse proxy) can route HTTPS traffic to the correct container.

To verify whether your domain points to the server’s public IP, you can run a couple of commands.

First, you can run the dig command as follows:

Command Line
dig +short   n8n.example.xyz

This should display your server's public IP address.

Alternatively, you can run the nslookup command to perform a DNS forward lookup.

Command Line
nslookup  n8n.example.xyz

The output contains two sections. The bottom section should display the subdomain and the corresponding server IP, in this case, your VPS public IP address.

Command Line
Server:		1.1.1.1
Address:	            1.1.1.1#53

Non-authoritative answer:
Name:	n8n.example.xyz
Address:       server-public-ip

If the output from the commands outlined gives anything to the contrary, check if the domain name has been pointed to the correct IP address. Also, allow more time for propagation of the DNS records (this can take up to 48 hours for some domain providers).

Once you have verified that your domain points to the server’s public IP, you can proceed.

  1. First, click your newly created n8n resource from the Projects dashboard.

  2. From the sidebar on the left-hand side, click “Settings” and select ”Domains”.

    On deployment, n8n will be assigned a default domain to the project; however, we will not use this URL since no TLS/SSL certificate is configured. Instead, we will add our registered domain and enable HTTPS.

    coolify-dashboard-default-domain

  3. Click the ”Add Domain” button in the top-right-hand corner.

  4. In the pop-up box that appears, set the protocol type to https, type in your registered subdomain in the ”Domain” text field, and then, in the “Port” field, specify 5678 as the n8n port.

    Then click ”Save”.

    coolify-dashboard-add-new-domain-for-n8n

The new domain will be listed below the default one assigned by Coolify. At this stage, the DNS status for the new entry has not yet been verified.

  1. To verify the DNS match, click the refresh symbol under the “Actions” column of the new domain.

    coolify-dashboard-new-domain-for-n8n

    Once the DNS status has been successfully verified, you will see a green indicator in the ”DNS Status” column. This confirms that Coolify has verified DNS resolution for the subdomain.

    coolify-dashboard-confirm-new-domain-for-n8n

  2. Apply the changes and configure TLS for the domain by clicking the ”Actions” button in the top-right-hand corner and selecting ”Restart” from the dropdown menu.

    Once you select this action, the containers (n8n, PostgreSQL, and task-runners) will be restarted. Following this, Coolify will automatically configure Let's Encrypt TLS for your domain, ensuring that n8n will use HTTPS instead of the plain-text ** HTTP ** protocol.

  3. Once the containers have restarted, a logs window will open once again. You may safely close this by clicking the “x” in the top-right-hand corner.

    coolify-dashboard-logs-generated-after-configuring-n8n

#Step 6: Confirm Let's Encrypt Deployment

Your domain is now configured to use the Let’s Encrypt TLS certificate with Traefik, which handles SSL automation and traffic routing (from port 80 to 443). Next, we will run a few tests to confirm TLS certificate deployment on n8n.

Run the following command to inspect the configuration and metadata of the coolify-proxy container and filter any lines mentioning "letsencrypt".

Command Line
docker inspect coolify-proxy | grep -i letsencrypt

The output should confirm that the Traefik certificate resolvers have been correctly configured to request and store Let's Encrypt certificates using the HTTP-01 challenge on port 80. The output should look similar to this:

Output "--certificatesresolvers.letsencrypt.acme.httpchallenge=true",
  "--certificatesresolvers.letsencrypt.acme.httpchallenge.entrypoint=http",
  "--certificatesresolvers.letsencrypt.acme.storage=/traefik/acme.json",
  "--certificatesresolvers.letsencrypt.acme.httpchallenge=true",
  "--certificatesresolvers.letsencrypt.acme.httpchallenge.entrypoint=http",
  "--certificatesresolvers.letsencrypt.acme.storage=/traefik/acme.json",

A more accurate way to verify whether the domain uses Let’s Encrypt is to print the certificate's issuer and validity dates. We can do this by running:

Command Line
echo | openssl s_client -connect n8n.example.xyz:443 -servername n8n.example.xyz 2>/dev/null | openssl x509 -noout -issuer

This should print the following output.

Outputissuer=C = US, O = Let's Encrypt, CN = YR2

Here’s a short breakdown of what this shows us:

  • C = US: This shows the country issuing the certificate, in this case, the US.

  • O = Let's Encrypt: Confirms the certificate authority is Let's Encrypt, and not a self-signed one.

  • CN = YR2 Specifies the intermediate certificate that signed your TLS certificate. YR2 is part of Let's Encrypt's newer "Generation Y" hierarchy.

For more verbose output, including a display of the certificate’s signature value and public key algorithm, you can run this command:

Command Line
echo | openssl s_client -connect n8n.example.xyz:443 -servername n8n.example.xyz 2>/dev/null | openssl x509 -noout -text

Or alternatively, you can use the curl command instead of openssl.

Command Line
curl -vI https://n8n.example.xyz 2>&1 | grep -i "issuer\|subject"

You should see the following output, indicating that everything is working as intended.

Output*  subject: CN=n8n.example.xyz
*  subjectAltName: host "n8n.example.xyz" matched cert's "n8n.example.xyz"
*  issuer: C=US; O=Let's Encrypt; CN=YR1

If you run into an error or do not see the intended display, again, confirm your domain or subdomain has an A record pointing straight to the public IPv4 address of your Coolify server. Also check if ports 80 and 443 are not being blocked by your cloud provider.

#Step 7: Access n8n From a Web Browser

  1. To access n8n, open your browser and navigate to your subdomain, for example, in this case: https://www.n8n.example.xyz

  2. You should see an account owner setup screen. You can set up an account by simply filling out the fields shown in the onboarding UI and clicking ”Next”.

    coolify-n8n-setup-owner-account

  3. To help tailor N8N to your needs, it’s recommended to provide information about your role, purpose for automation, and the company’s size using the ensuing pop-up box, as displayed below.

    n8n-setup-tailor-user-preferences

  4. Finally, N8N's welcome screen will appear. From here, you can start building automated workflows by visually connecting different apps and services. You can start by dragging nodes onto a canvas and applying logic to events. For example, you can set instructions like, “When A happens, do B."

    n8n-create-new-workflow

Also read: Coolify vs Dokku: Which Self-Hosted PaaS is Right for You

#Conclusion

You have successfully deployed n8n on Coolify. As we have established, Coolify streamlines the installation by automating container deployment, domain configuration, HTTPS, and persistent storage, while PostgreSQL provides a reliable database backend for your n8n instance. With just a few clicks, everything is configured and running from the ground up.

That said, getting n8n running is just the starting point. A self-hosted deployment is only as reliable as the maintenance behind it. After that, think about automating PostgreSQL backups to store data offsite, setting up monitoring and alerting for the containers and VPS, and routinely checking environment variables and secrets. Consider checking out the official n8n documentation to better understand n8n key concepts, and leverage Anthropic’s Claude Code to simplify workflow creation.

Cloud VPS Hosting

Starting at just €3.00 / month, get virtual servers with top-tier performance.

Share this article

Related Articles

Published on Nov 17, 2026 Updated on Nov 18, 2026

Coolify System Requirements and Server Specs

Discover Coolify server requirements, recommended CPU, RAM and storage specs, supported operating systems, required ports, and the best hosting setup for your workload.

Read More
Published on Nov 12, 2026 Updated on Nov 27, 2026

OpenClaw Cost: Hosting, API and Hidden Costs

Discover how much OpenClaw costs per month, including VPS hosting, AI model APIs, hidden fees, and practical ways to reduce expenses and manage your budget.

Read More
Published on Oct 25, 2026 Updated on Nov 27, 2026

VPS for Coolify: 7 Providers Compared

Compare 7 VPS providers for Coolify, explore server requirements, and find the best hosting option for secure deployments, scalability, backups, and performance.

Read More
No results found for ""
Recent Searches
Navigate
Go
ESC
Exit