Browse Source

0560: Running Cachet Open Source Status Page System in Docker on Linux

i12bretro 1 year ago
parent
commit
e794fdc832
1 changed files with 80 additions and 0 deletions
  1. 80 0
      0560.html

+ 80 - 0
0560.html

@@ -0,0 +1,80 @@
+    <!DOCTYPE html>
+    <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
+      <head>
+        <title>Running Cachet Open Source Status Page System 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,Container,Containerization,Docker,Docker How To,Docker Installation Tutorial,Docker Simplified,Docker Tutorial,Free Software,Getting Started With Docker,Linux,Self-hosted,Ubuntu,Cachet,Cachet Status Page,Status Page,How To,Tutorial,i12bretro">
+        <meta name="author" content="i12bretro">
+        <meta name="description" content="Running Cachet Open Source Status Page System in Docker on Linux">
+        <meta name="viewport" content="width=device-width, initial-scale=1.0">
+        <meta name="revised" content="11/30/2023 06:43:19 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 Cachet Open Source Status Page System in Docker on Linux</h1>
+          </div>
+          <div></div>
+          <div id="content">
+          <h2>What is Cachet?</h2>
+
+<blockquote>Cachet is a beautiful and powerful open source status page system.<em> -<a href="https://github.com/CachetHQ/Cachet" target="_blank">https://github.com/CachetHQ/Cachet</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 Cachet</h2>
+
+<ol>
+	<li>Now that Docker is installed, run the following commands to setup the Cachet container and run it
+	<div class="codeBlock"># create working directories<br />
+	mkdir /home/$USER/docker/postresql -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 postgesql docker container<br />
+	docker run -d --name postgres -e POSTGRES_USER=cachet -e POSTGRES_PASSWORD=Cach3t -e POSTGRES_DB=cachet -v /home/$USER/docker/postresql:/var/lib/postgresql/data --restart=unless-stopped postgres:latest<br />
+	# run the cachet docker container<br />
+	docker run -d --name cachet --link postgres -e DB_DRIVER=pgsql -e DB_HOST=postgres -e DB_DATABASE=cachet -e DB_USERNAME=cachet -e DB_PASSWORD=Cach3t -e APP_KEY=base64:YAWZR/UkMlVTBWEET95ZGiL7g13mhNwaKF4hzYmo9oc= -e APP_ENV=production -p 8000:8000 --restart=unless-stopped cachethq/docker:latest</div>
+	</li>
+	<li>Open a web browser and navigate to http://DNSorIP:8000/setup</li>
+	<li>The Cachet setup screen should be displayed</li>
+	<li>Set the Cache, Queue and Session drivers to Database</li>
+	<li>Optionally setup the SMTP host and email address &gt; Click Next</li>
+	<li>Enter a site name, set the timezone and language &gt; Click Next</li>
+	<li>Create an administrator account by entering a username, email address and password &gt; Click Complete Setup</li>
+	<li>Click the Go to dashboard button</li>
+	<li>Login with the administator account created earlier</li>
+	<li>Welcome to Cachet</li>
+	<li>To view the status page navigate to http://DNSorIP:8000</li>
+</ol>
+
+<p>Documentation: <a href="https://hub.docker.com/r/cachethq/docker" target="_blank">https://hub.docker.com/r/cachethq/docker</a></p>          </div>
+        </div>
+      </body>
+    </html>
+