Welcome to n8n-oracle-cloud-selfhost! This guide will help you deploy n8n, a powerful workflow automation tool, on Oracle Cloud using Docker, an Nginx reverse proxy, and securing it with TLS.
n8n is an open-source workflow automation tool. It allows you to connect various services and automate tasks without needing extensive programming knowledge. With n8n, you can create workflows that link applications and services seamlessly.
Before you start, ensure you have the following:
To run n8n successfully, youβll need:
Visit the Releases Page:
Go to the Releases page to access the latest version. This page contains the necessary files to deploy n8n.
Choose the Latest Release:
Find the latest release at the top of the page. Click on the version number to view the details.
Download Docker Compose File:
Look for the Docker Compose file, typically named docker-compose.yml. Click to download it.
(Optional) Download Additional Files:
Depending on your setup, you might need to download other files listed in the release notes.
Prepare Your Server:
Make sure your Oracle Cloud server is running. Use SSH to connect to your server.
ssh your_username@your_server_ip
docker-compose.yml file to your server. You can use a tool like scp or an FTP client to do this.scp path/to/docker-compose.yml your_username@your_server_ip:/your/server/path
docker-compose.yml file. Execute the following command:docker-compose up -d
This command starts n8n in the background.
To serve n8n properly, you will need to set up Nginx as a reverse proxy.
sudo apt-get install nginx
/etc/nginx/sites-available/ directory.sudo nano /etc/nginx/sites-available/n8n
your_domain.com with your actual domain.server {
listen 80;
server_name your_domain.com;
location / {
proxy_pass http://localhost:5678;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
sudo ln -s /etc/nginx/sites-available/n8n /etc/nginx/sites-enabled/
sudo nginx -t
sudo systemctl restart nginx
To secure your n8n installation, set up a TLS certificate:
Install Certbot:
Follow the instructions on the Certbot website to install Certbot.
Obtain a Certificate:
Use Certbot to obtain a new certificate.
sudo certbot --nginx -d your_domain.com
After completing the above steps, you can access n8n in your web browser. Open your browser and go to:
https://your_domain.com
Follow the prompts to finalize your setup.
If you encounter issues, check the following:
Use the community forums or GitHub discussions for additional support.
You have successfully set up n8n on Oracle Cloud with Docker and Nginx. Enjoy automating your workflows!
For more details and updates, keep an eye on the Releases page.