Arama Yap Mesaj Submit
Request a Callback
+90
X
X

Select Your Currency

Turkish Lira $ US Dollar Euro
X
X

Select Your Currency

Turkish Lira $ US Dollar Euro

Contact Us

Location Halkali merkez neighborhood fatih st ozgur apt no 46 , Kucukcekmece , Istanbul , 34303 , TR

n8n VPS Installation Guide

Liberate your business processes! 2026's most popular automation tool n8nEnsure data confidentiality by hosting on your own server and avoid limits Automate.

This guide; Suitable for production environment using Docker, PostgreSQL, Nginx and SSL It allows you to install a high-performance n8n server. Eka Sunucu's powerful NVMe SSD with its infrastructure Let your automations work in milliseconds.

250₺ Server prices starting from /month
root@n8n-server:~#
docker compose up -d
# Creating network "n8n_default"
# Creating container "postgres" ... done
# Creating container "n8n" ... done
Server is running on port 5678

Docker
architecture

Safe and stable working environment with isolated container structure.

PostgreSQL
database

PostgreSQL integration instead of SQLite for high throughput.

SSL &
Security

Fully encrypted connection with Nginx Reverse Proxy and Let's Encrypt.

unlimited
Workflow

Automation freely on your own server, without transaction limits.

1. Preparation and Requirements

For a successful n8n installation, a device that meets the following requirements Linux VPS You need server. Eka Sunucu's SSD Virtual Server packages this Ideal for business.

Recommended System: Ubuntu 22.04 LTS or 24.04 LTS, Minimum 2 CPU, 4GB RAM.

1.1 DNS Record Creation

From your domain panel (Cloudflare etc.) A Record create:

  • Type: A
  • Name: n8n (or whatever subdomain you want)
  • Content: Your Server IP Address (Ex: 213.145.94.45)

1.2 Server Update and Security

After connecting to your server via SSH, update the system and set basic firewall settings.

terminal
sudo apt update && sudo apt -y upgrade
# UFW Firewall Setup and Port Permissions
sudo apt -y install ufw
sudo ufw allow OpenSSH
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw --force enable

2. Docker and Docker Compose Installation

We will use container architecture to run n8n in the most efficient way. This is the dependency of the application It allows it to work without any problems.

install-docker.sh
# Installing the necessary packages
sudo apt -y install ca-certificates curl gnupg
# Adding Docker GPG key
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
# Adding the repository and installation
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo $VERSION_CODENAME) stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update
sudo apt -y install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo systemctl enable --now docker

3. n8n Configuration and Environment Variables

Create a special directory for installation and download the media file containing secure passwords and domain name settings. We will prepare.

3.1 Creating Directory and Password

terminal
sudo mkdir -p /opt/n8n
cd /opt/n8n
# Generating secure passwords (Take note of the output!)
DB_PASS="$(openssl rand -base64 24)"
N8N_PASS="$(openssl rand -base64 18)"
ENC_KEY="$(openssl rand -hex 32)"
echo "DB: $DB_PASS | User: $N8N_PASS | Key: $ENC_KEY"

3.2 .env File

Create the file below. n8n.ekasunucu.com Replace it with your own domain name.

.env
POSTGRES_USER=n8n
POSTGRES_PASSWORD=YOUR CREATED_DB_SIFRESI
POSTGRES_DB=n8n
N8N_BASIC_AUTH_USER=admin
N8N_BASIC_AUTH_PASSWORD=YOUR CREATED_USER_SIFRESI
N8N_ENCRYPTION_KEY=OLUSTURDUGUNUZ_ENC_KEY
N8N_HOST=n8n.ekasunucu.com
N8N_PROTOCOL=https
WEBHOOK_URL=https://n8n.ekasunucu.com/
N8N_EDITOR_BASE_URL=https://n8n.ekasunucu.com
GENERIC_TIMEZONE=Europe/Istanbul
N8N_SECURE_COOKIE=true

3.3 Docker Compose File

defining services docker-compose.yml Create the file.

docker-compose.yml
services:
postgres:
image: postgres:16
restart: always
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
volumes:
- postgres_data:/var/lib/postgresql/data
n8n:
image: n8nio/n8n:latest
restart: always
depends_on:
- postgres
ports:
- "127.0.0.1:5678:5678"
environment:
- DB_TYPE=postgresdb
- DB_POSTGRESDB_HOST=postgres
- DB_POSTGRESDB_PORT=5432
- DB_POSTGRESDB_DATABASE=${POSTGRES_DB}
- DB_POSTGRESDB_USER=${POSTGRES_USER}
- DB_POSTGRESDB_PASSWORD=${POSTGRES_PASSWORD}
- N8N_HOST=${N8N_HOST}
- N8N_PORT=5678
- N8N_PROTOCOL=${N8N_PROTOCOL}
- WEBHOOK_URL=${WEBHOOK_URL}
- N8N_BASIC_AUTH_ACTIVE=true
- N8N_BASIC_AUTH_USER=${N8N_BASIC_AUTH_USER}
- N8N_BASIC_AUTH_PASSWORD=${N8N_BASIC_AUTH_PASSWORD}
- N8N_ENCRYPTION_KEY=${N8N_ENCRYPTION_KEY}
volumes:
- n8n_data:/home/node/.n8n
volumes:
n8n_data:
postgres_data:

After creating the files, start n8n:

docker compose up -d

4. Nginx Reverse Proxy and SSL Setup

We will use Nginx and Let's Encrypt to securely open n8n to the outside world.

4.1 Nginx Installation and Config

terminal
sudo apt -y install nginx
sudo systemctl enable --now nginx
# Create the config file
sudo nano /etc/nginx/sites-available/n8n

Paste the following configuration into the file:

/etc/nginx/sites-available/n8n
server {
listen 80;
server_name n8n.ekasunucu.com;
location / {
proxy_pass http://127.0.0.1:5678;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
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;
proxy_buffering off;
}
}

4.2 Enable Configuration and SSL

terminal
sudo ln -sf /etc/nginx/sites-available/n8n /etc/nginx/sites-enabled/n8n
sudo nginx -t && sudo systemctl reload nginx
# SSL Setup with Certbot
sudo apt -y install certbot python3-certbot-nginx
sudo certbot --nginx -d n8n.ekasunucu.com
Installation Completed! Now from your browser https://n8n.alanadiniz.com/setup Log in to your administrator account by going to you can create

Frequently Asked Questions

The most frequently asked questions about n8n VPS installation and management.

Why should I use VPS instead of n8n Cloud?

Hosting n8n on your own VPS server gives you data sovereignty, unlimited workflow execution and stable Provides cost advantage. Your data is on servers under your control, not on third-party servers. is stored.

What are the minimum server requirements?

For entry-level automations, 2 vCPU and 2GB RAM are sufficient. However, intensive workloads and AI agents 4GB RAM and above are recommended for use. Eka Sunucu VPS packages optimized for n8n with NVMe disks has been made.

I'm getting "Secure cookies" error, why?

This error is usually received when there is no SSL certificate or the protocol remains HTTP in the .env file. Make sure you have completed the SSL installation and in the .env file N8N_PROTOCOL=https Make sure it is.

How do I update the n8n version?

Go to the installation directory (cd /opt/n8n), then docker compose pull and docker compose up -d run commands. Upgrade to the latest version without losing your system data It will be updated.

Build Your Own Automation Empire!

You can safely run your n8n, Docker and AI projects with Eka Sunucu's high-performance VDS/VPS packages. host. Let your workflows fly with NVMe disk performance.

250₺ Prices starting from /month
Top