How to update self-hosted n8n in Ubuntu

Updating Docker Compose

If you run n8n using a Docker Compose file, follow these steps to update n8n:


# Navigate to the directory containing your docker compose file
cd ~/n8n

# Pull latest version
docker compose pull

# Stop and remove older version
docker compose down

# Start the container
docker compose up -d