Browse Source

0832: Run Akaunting - Open Source Accounting Software - in Docker

i12bretro 1 year ago
parent
commit
c1292bb33c
1 changed files with 103 additions and 0 deletions
  1. 103 0
      0832.html

+ 103 - 0
0832.html

@@ -0,0 +1,103 @@
+    <!DOCTYPE html>
+    <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
+      <head>
+        <title>Run Akaunting - Open Source Accounting Software - in Docker</title>
+        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+        <meta charset="UTF-8">
+        <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">
+        <meta name="author" content="i12bretro">
+        <meta name="description" content="Run Akaunting - Open Source Accounting Software - in Docker">
+        <meta name="viewport" content="width=device-width, initial-scale=1.0">
+        <meta name="revised" content="08/20/2023 07:04:47 PM" />
+				          <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
+				  <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
+				        <script type="text/javascript" src="includes/js/steps.js"></script>
+        <link href="css/steps.css" rel="stylesheet" type="text/css" />
+      </head>
+      <body>
+        <div id="gridContainer">
+          <div class="topMargin"></div>
+          <div id="listName" class="topMargin">
+            <h1>Run Akaunting - Open Source Accounting Software - in Docker</h1>
+          </div>
+          <div></div>
+          <div id="content">
+          <h2>What is Akaunting?</h2>
+
+<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>
+
+<h2>Installing Docker</h2>
+
+<ol>
+	<li>Log into the Linux based device</li>
+	<li>Run the following commands in the terminal
+	<div class="codeBlock"># install prerequisites<br />
+	sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y<br />
+	# add docker gpg key<br />
+	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 />
+	# add docker software repository<br />
+	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 />
+	# install docker<br />
+	sudo apt install docker-ce docker-compose containerd.io -y<br />
+	# enable and start docker service<br />
+	sudo systemctl enable docker &amp;&amp; sudo systemctl start docker<br />
+	# add the current user to the docker group<br />
+	sudo usermod -aG docker $USER<br />
+	# reauthenticate for the new group membership to take effect<br />
+	su - $USER</div>
+	</li>
+</ol>
+
+<h2>Running the Akaunting Container</h2>
+
+<ol>
+	<li>Now that Docker is installed, run the following commands to setup the Akaunting Docker container and run it
+	<div class="codeBlock"># create working directories<br />
+	mkdir ~/docker/akaunting -p &amp;&amp; mkdir ~/docker/mariadb -p<br />
+	# download base .env file<br />
+	wget -O ~/docker/akaunting/.env https://raw.githubusercontent.com/akaunting/docker/master/env/run.env.example<br />
+	# set ownership on the working directories<br />
+	sudo chown &quot;$USER&quot;:&quot;$USER&quot; ~/docker -R<br />
+	# run the mariadb docker container<br />
+	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 />
+	# edit .env file<br />
+	nano ~/docker/akaunting/.env</div>
+	</li>
+	<li>Edit the values in .env as follows
+	<p>APP_URL=http://DNSorIP:8080<br />
+	LOCALE=en-US<br />
+	<br />
+	DB_HOST=mariadb<br />
+	DB_PORT=3306<br />
+	<br />
+	DB_NAME=akaunting<br />
+	DB_USERNAME=akaunting_rw<br />
+	DB_PASSWORD=@k0unt1ng!</p>
+
+	<p>DB_PREFIX=</p>
+
+	<p>COMPANY_NAME=i12bretro<br />
+	COMPANY_EMAIL=accounting@i12bretro.local<br />
+	<br />
+	ADMIN_EMAIL=i12bretro@i12bretro.local<br />
+	ADMIN_PASSWORD=&lt;% something secure %&gt;</p>
+	</li>
+	<li>Press CTRL+O, Enter, CTRL+X to write the changes to .env</li>
+	<li>Continue with the following steps in the terminal
+	<div class="codeBlock"># run the akaunting container<br />
+	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>
+	</li>
+	<li>Open a web browser and navigate to http://DNSorIP:8080</li>
+	<li>Login with the Email and Password setup in the .env file</li>
+	<li>On the Company tab, scroll to the bottom of the form and click Skip this step</li>
+	<li>Select/add the desired currencies &gt; Click Next</li>
+	<li>Click Next on the Taxes tab</li>
+	<li>Click the Create your first invoice link</li>
+	<li>Welcome to Akaunting</li>
+</ol>
+
+<p>Documentation: <a href="https://hub.docker.com/r/akaunting/akaunting" target="_blank">https://hub.docker.com/r/akaunting/akaunting</a></p>          </div>
+        </div>
+      </body>
+    </html>
+