浏览代码

0589: Running Homer Application Dashboard in Docker on Linux

i12bretro 1 年之前
父节点
当前提交
5769e80a4c
共有 1 个文件被更改,包括 78 次插入0 次删除
  1. 78 0
      0589.html

+ 78 - 0
0589.html

@@ -0,0 +1,78 @@
+    <!DOCTYPE html>
+    <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
+      <head>
+        <title>Running Homer Application Dashboard in Docker on Linux</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,Application Dashboard,Homelab Dashboard,Homer,Homer Application Dashboard,Linux,NodeJS,Docker Tutorial,Docker Simplified,Homelab,Docker Container,Docker,Docker How To,Docker Made Simple,How To,Tutorial,i12bretro">
+        <meta name="author" content="i12bretro">
+        <meta name="description" content="Running Homer Application Dashboard in Docker on Linux">
+        <meta name="viewport" content="width=device-width, initial-scale=1.0">
+        <meta name="revised" content="12/23/2023 09:10:21 AM" />
+				          <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>Running Homer Application Dashboard in Docker on Linux</h1>
+          </div>
+          <div></div>
+          <div id="content">
+          <h2>What is Homer?</h2>
+
+<blockquote>
+<p><em>A dead simple static HOMepage for your servER to keep your services on hand, from a simple yaml configuration file. -<a href="https://github.com/bastienwirtz/homer" target="_blank">https://github.com/bastienwirtz/homer</a></em></p>
+</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 Homer</h2>
+
+<ol>
+	<li>Now that Docker is installed, run the following commands to setup the Homer Docker container and run it
+	<div class="codeBlock"># create working directories<br />
+	mkdir /home/$USER/docker/homer -p<br />
+	# set owner of working directories<br />
+	sudo chown &quot;$USER&quot;:&quot;$USER&quot; /home/&quot;$USER&quot;/docker -R<br />
+	# run the homer docker container<br />
+	docker run -d --name homer -p 8080:8080 -v /home/$USER/docker/homer:/www/assets --restart=unless-stopped b4bz/homer:latest</div>
+	</li>
+	<li>Open a web browser and navigate to http://DNSorIP:8080</li>
+	<li>Welcome to Homer</li>
+	<li>To make changes to the dashboard, edit the config.yml file with the following command
+	<div class="codeBlock"># edit homer config.yml<br />
+	sudo nano ~/docker/homer/config.yml</div>
+	</li>
+	<li>Press CTRL+O, Enter, CTRL+X to write the changes</li>
+	<li>Back in the web browser, refresh the page to view the changes</li>
+</ol>
+
+<p>Documentation: <a href="https://hub.docker.com/r/b4bz/homer" target="_blank">https://hub.docker.com/r/b4bz/homer</a></p>          </div>
+        </div>
+      </body>
+    </html>
+