Report this

What is the reason for this report?

N8n hosting set up on Digital Ocean

Posted on April 16, 2023

Hi,

we keep all our infrastructure in the cloud with Digital Ocean and to optimize costs, we would like to host n8n there as well.

However, when trying to create a droplet and follow the steps given in the n8n documentation, I have not been able to make it work. This is the second time I have created a subdomain and droplet, but in both cases, although the installation is successful without errors, I cannot access the domain. The first attempt was yesterday, and the second one was this morning.

Can you help me understand what I might be doing wrong?

1. Install Docker

sudo apt-get remove docker docker-engine docker.io containerd runc

sudo apt-get update

sudo apt-get install ca-certificates curl gnupg lsb-release

sudo mkdir -p /etc/apt/keyrings

curl -fsSL [https://download.docker.com/linux/ubuntu/gpg](https://download.docker.com/linux/ubuntu/gpg) | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg

echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] [https://download.docker.com/linux/ubuntu](https://download.docker.com/linux/ubuntu) $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

sudo apt-get update

sudo apt-get install docker-ce docker-ce-cli containerd.io


3. Install Docker-Compose#

sudo apt-get install docker-compose-plugin

[Digital Ocean - n8n Documentation](https://docs.n8n.io/hosting/installation/server-setups/digital-ocean/)


Clone configuration repository

git clone [https://github.com/n8n-io/n8n-docker-caddy.git](https://github.com/n8n-io/n8n-docker-caddy.git)

cd n8n-docker-caddy


Create Docker volume

docker volume create caddy_data


Open ports

sudo ufw allow 80

sudo ufw allow 443


Configure n8n

nano .env


The Docker Compose file

nano docker-compose.yml


Configure Caddy

nano caddy_config/Caddyfile


Start Docker Compose

docker compose up -d

Here are the sources: Docker Compose - n8n Documentation

Digital Ocean - n8n Documentation

Here is my subdomain: n8n.felipewelington.com.br

Here is DNS checker: DNS Checker - DNS Check Propagation Tool



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there,

As far as I can see there is no DNS record for the subdomain name that you’ve shared.

As you are using the Cloudflare nameservers this means that you need to login to your Cloudflare account and add a DNS record for the subdomain name that you would like to use for your n8n setup as described here:

https://docs.n8n.io/hosting/installation/server-setups/digital-ocean/#set-up-dns

Once you add the A record to point to your Droplet, it could take up to 24 hours for the DNS cache to clear over the Globe before you can see the new records.

Let me know how it goes.

Best,

Bobby

Hey,

I also want to automate a process for my client’s website.

The process he is looking for is something like this: When a Reddit post is published, then a new user with the same username is created, and after that Reddit post data gets saved to a Google sheet, and from that Google sheet chat gpt will be linked and the data will be rewritten with a special prompt. After that, the data will again saved to a new sheet, and from that Google sheet, the new data will be published in a forum.

So this automation possible with N8N or do I have to choose zappier or Pabbly?

If possible, can you guide some?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Dark mode is coming soon.