Applies to: LifeinCloud Cloud VPS • Ubuntu 22.04 LTS
n8n is a powerful automation and workflow platform. While LifeinCloud offers a 1-click n8n VPS image for quick setup, this guide explains how to install n8n manually using Docker and Docker Compose.
Requirements
- LifeinCloud VPS running Ubuntu 22.04
- Root SSH access
- Docker installed ( see our Docker installation guide)
Step 1 — Create n8n Directory
mkdir -p /opt/n8n && cd /opt/n8n
Step 2 — Create Docker Compose File
Create and edit the Docker Compose configuration:
nano docker-compose.yml
version: "3"
services:
n8n:
image: n8nio/n8n
ports:
- "5678:5678"
environment:
- GENERIC_TIMEZONE=Europe/Bucharest
- N8N_BASIC_AUTH_ACTIVE=true
- N8N_BASIC_AUTH_USER=admin
- N8N_BASIC_AUTH_PASSWORD=securepassword
volumes:
- /opt/n8n:/home/node/.n8n
Step 3 — Start n8n
docker-compose up -d
Step 4 — Access the Web Interface
Open http://YOUR_SERVER_IP:5678
in your browser and log in with the username and password you defined in the Docker Compose file.