← All guides
n8n
n8n is a fair-code workflow automation tool for building integrations and automations visually, with an official Docker image for self-hosting.
This guide is synthesized from n8n's own official documentation, linked above — always cross-check exact package/version names there before running these commands on a production server, since distro and project versions move over time.
1Create a persistent volume
docker volume create n8n_data2Run n8n
docker run -it --rm \ --name n8n \ -p 5678:5678 \ -e GENERIC_TIMEZONE="Europe/Berlin" \ -e TZ="Europe/Berlin" \ -e N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true \ -e N8N_RUNNERS_ENABLED=true \ -v n8n_data:/home/node/.n8n \ n8nio/n8nReplace the timezone with your own from the tz database. n8n's docs warn that self-hosting is aimed at experienced users — mistakes can cause data loss or downtime.
3Access the editor
Open http://localhost:5678 and complete the on-screen owner account setup.
4Consider Docker Compose for a full stack
For a more complete self-hosted setup (including n8n's task runners and optional web-search sandbox), n8n publishes ready-made Docker Compose configurations in its n8n-hosting GitHub repository.