0783.html 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Run n8n - Open Source Workflow Automation - in Docker</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="Browser Based,Home Lab,Home Lab Ideas,Install Guide,Self-Hosted,Web Based,Web Based Tools,FOSS,Free Open Source Software,Free Software,Linux,Open Source,Open Source Software,Open-Source,Ubuntu,N8n,Integomat Alternative,Make Alternative,Nodemation,Graphical Software Integration,Workflow Automation,Application Integration Platform,Docker Made Easy,Docker,Container,Containerization,Docker How To,Docker Simplified,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Run n8n - Open Source Workflow Automation - in Docker">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="07/25/2022 09:50:55 PM" />
  12. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  13. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  14. <script type="text/javascript" src="includes/js/steps.js"></script>
  15. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="gridContainer">
  19. <div class="topMargin"></div>
  20. <div id="listName" class="topMargin">
  21. <h1>Run n8n - Open Source Workflow Automation - in Docker</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <h2>What is n8n?</h2>
  26. <blockquote><em>n8n is an extendable workflow automation tool. With a fair-code distribution model, n8n will always have visible source code, be available to self-host, and allow you to add your own custom functions, logic and apps. n8n&#39;s node-based approach makes it highly versatile, enabling you to connect anything to everything. -<a href="https://github.com/n8n-io/n8n" target="_blank">https://github.com/n8n-io/n8n</a></em></blockquote>
  27. <h2>Installing Docker</h2>
  28. <ol>
  29. <li>Log into the Linux based device</li>
  30. <li>Run the following commands in the terminal
  31. <div class="codeBlock"># install prerequisites<br />
  32. sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y<br />
  33. # add docker gpg key<br />
  34. curl -fsSL https://download.docker.com/linux/$(awk -F&#39;=&#39; &#39;/^ID=/{ print $NF }&#39; /etc/os-release)/gpg | sudo apt-key add -<br />
  35. # add docker software repository<br />
  36. sudo add-apt-repository &quot;deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/$(awk -F&#39;=&#39; &#39;/^ID=/{ print $NF }&#39; /etc/os-release) $(lsb_release -cs) stable&quot;<br />
  37. # install docker<br />
  38. sudo apt install docker-ce docker-compose containerd.io -y<br />
  39. # enable and start docker service<br />
  40. sudo systemctl enable docker &amp;&amp; sudo systemctl start docker<br />
  41. # add the current user to the docker group<br />
  42. sudo usermod -aG docker $USER<br />
  43. # reauthenticate for the new group membership to take effect<br />
  44. su - $USER</div>
  45. </li>
  46. </ol>
  47. <h2>Running the n8n Container</h2>
  48. <ol>
  49. <li>Now that Docker is installed, run the following commands to setup the n8n Docker container and run it
  50. <div class="codeBlock"># create working directory<br />
  51. mkdir ~/docker/n8n -p &amp;&amp; mkdir ~/docker/mariadb<br />
  52. # set ownership on the working directories<br />
  53. sudo chown &quot;$USER&quot;:&quot;$USER&quot; ~/docker -R<br />
  54. # run the mariadb docker container<br />
  55. docker run -d --name mariadb -e MYSQL_ROOT_PASSWORD=r00tp@$$ -e MYSQL_USER=n8n_rw -e MYSQL_PASSWORD=&#39;n8n_N8N!&#39; -e MYSQL_DATABASE=n8n_db -v ~/docker/mariadb:/var/lib/mysql -p 3306:3006 -d mariadb:latest<br />
  56. # run the n8n container<br />
  57. docker run -d --name=n8n --link mariadb -p 5678:5678 -v ~/docker/n8n:/home/node/.n8n -e GENERIC_TIMEZONE=America/New_York -e TZ=America/New_York -e DB_TYPE=mysqldb -e DB_MYSQLDB_DATABASE=n8n_db -e DB_MYSQLDB_HOST=mariadb -e DB_MYSQLDB_PORT=3306 -e DB_MYSQLDB_USER=n8n_rw -e DB_MYSQLDB_PASSWORD=&#39;n8n_N8N!&#39; n8nio/n8n</div>
  58. </li>
  59. <li>Open a web browser and navigate to http://DNSorIP:5678</li>
  60. <li>Complete the form with an email, first name, last name and password &gt; Click next</li>
  61. <li>Complete the questionnaire &gt; Click continue</li>
  62. <li>Click Get started</li>
  63. <li>Welcome to n8n</li>
  64. </ol>
  65. <p>Documentation: <a href="https://hub.docker.com/r/n8nio/n8n" target="_blank">https://hub.docker.com/r/n8nio/n8n</a></p> </div>
  66. </div>
  67. </body>
  68. </html>