0832.html 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Run Akaunting - Open Source Accounting Software - 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,Docker Made Easy,Home Lab,Home Lab Ideas,Install Guide,Self-Hosted,Web Based,Web Based Tools,Container,Containerization,Docker,Docker How To,Docker Installation Tutorial,Docker Simplified,Docker Tutorial,Expense Tracker,Homelab,Invoice,Invoicing Software,Linux,Payment Manager,Ubuntu,Akaunting,Accounting,Accounting Software,Expense Tracking,Income Tracking,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Run Akaunting - Open Source Accounting Software - in Docker">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="08/20/2023 07:04:47 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 Akaunting - Open Source Accounting Software - in Docker</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <h2>What is Akaunting?</h2>
  26. <blockquote><em>Akaunting is a free, open source and online accounting software designed for small businesses and freelancers. -<a href="https://github.com/akaunting/akaunting" target="_blank">https://github.com/akaunting/akaunting</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 Akaunting Container</h2>
  48. <ol>
  49. <li>Now that Docker is installed, run the following commands to setup the Akaunting Docker container and run it
  50. <div class="codeBlock"># create working directories<br />
  51. mkdir ~/docker/akaunting -p &amp;&amp; mkdir ~/docker/mariadb -p<br />
  52. # download base .env file<br />
  53. wget -O ~/docker/akaunting/.env https://raw.githubusercontent.com/akaunting/docker/master/env/run.env.example<br />
  54. # set ownership on the working directories<br />
  55. sudo chown &quot;$USER&quot;:&quot;$USER&quot; ~/docker -R<br />
  56. # run the mariadb docker container<br />
  57. docker run -d --name mariadb -e MYSQL_ROOT_PASSWORD=r00tp@$$ -e MYSQL_USER=akaunting_rw -e MYSQL_PASSWORD=&#39;@k0unt1ng!&#39; -e MYSQL_DATABASE=akaunting -v ~/docker/mariadb:/var/lib/mysql -p 3306:3006 --restart=unless-stopped mariadb:latest<br />
  58. # edit .env file<br />
  59. nano ~/docker/akaunting/.env</div>
  60. </li>
  61. <li>Edit the values in .env as follows
  62. <p>APP_URL=http://DNSorIP:8080<br />
  63. LOCALE=en-US<br />
  64. <br />
  65. DB_HOST=mariadb<br />
  66. DB_PORT=3306<br />
  67. <br />
  68. DB_NAME=akaunting<br />
  69. DB_USERNAME=akaunting_rw<br />
  70. DB_PASSWORD=@k0unt1ng!</p>
  71. <p>DB_PREFIX=</p>
  72. <p>COMPANY_NAME=i12bretro<br />
  73. COMPANY_EMAIL=accounting@i12bretro.local<br />
  74. <br />
  75. ADMIN_EMAIL=i12bretro@i12bretro.local<br />
  76. ADMIN_PASSWORD=&lt;% something secure %&gt;</p>
  77. </li>
  78. <li>Press CTRL+O, Enter, CTRL+X to write the changes to .env</li>
  79. <li>Continue with the following steps in the terminal
  80. <div class="codeBlock"># run the akaunting container<br />
  81. docker run -d --name=akaunting --link mariadb -p 8080:80 --env-file ~/docker/akaunting/.env -e AKAUNTING_SETUP=true -v ~/docker/akaunting:/var/www/html/storage --restart=unless-stopped akaunting/akaunting</div>
  82. </li>
  83. <li>Open a web browser and navigate to http://DNSorIP:8080</li>
  84. <li>Login with the Email and Password setup in the .env file</li>
  85. <li>On the Company tab, scroll to the bottom of the form and click Skip this step</li>
  86. <li>Select/add the desired currencies &gt; Click Next</li>
  87. <li>Click Next on the Taxes tab</li>
  88. <li>Click the Create your first invoice link</li>
  89. <li>Welcome to Akaunting</li>
  90. </ol>
  91. <p>Documentation: <a href="https://hub.docker.com/r/akaunting/akaunting" target="_blank">https://hub.docker.com/r/akaunting/akaunting</a></p> </div>
  92. </div>
  93. </body>
  94. </html>