<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Docker Archives - ServerStadium</title>
	<atom:link href="https://serverstadium.com/knowledge-base/tag/docker/feed/" rel="self" type="application/rss+xml" />
	<link>https://serverstadium.com/knowledge-base/tag/docker/</link>
	<description>Public Cloud Solution by ServerStadium</description>
	<lastBuildDate>Sat, 08 Mar 2025 02:35:50 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.4</generator>

<image>
	<url>https://serverstadium.com/wp-content/uploads/2023/04/cropped-favicon-1-32x32.png</url>
	<title>Docker Archives - ServerStadium</title>
	<link>https://serverstadium.com/knowledge-base/tag/docker/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Setting Up PostgreSQL with Docker on Server Stadium Cloud VMs or Dedicated Servers</title>
		<link>https://serverstadium.com/knowledge-base/setting-up-postgresql-with-docker-on-server-stadium/</link>
		
		<dc:creator><![CDATA[Brian K]]></dc:creator>
		<pubDate>Fri, 24 May 2024 19:49:37 +0000</pubDate>
				<guid isPermaLink="false">https://serverstadium.com/?post_type=epkb_post_type_1&#038;p=11953</guid>

					<description><![CDATA[<p>Introduction PostgreSQL is a powerful, open-source object-relational database system known for its robustness, scalability, and performance. Using Docker to deploy PostgreSQL can simplify the setup and maintenance of your database environment. This guide will walk you through setting up a PostgreSQL database using Docker on Server Stadium infrastructure. Prerequisites Access to a Server Stadium cloud&#8230;</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/setting-up-postgresql-with-docker-on-server-stadium/">Setting Up PostgreSQL with Docker on Server Stadium Cloud VMs or Dedicated Servers</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h3>Introduction</h3>
<p>PostgreSQL is a powerful, open-source object-relational database system known for its robustness, scalability, and performance. Using Docker to deploy PostgreSQL can simplify the setup and maintenance of your database environment. This guide will walk you through setting up a PostgreSQL database using Docker on Server Stadium infrastructure.</p>
<h3>Prerequisites</h3>
<ul>
<li>Access to a Server Stadium <a href="https://serverstadium.com/pricing/" target="_new" rel="noreferrer noopener">cloud VM</a> or <a href="https://serverstadium.com/dedicated-server/" target="_new" rel="noreferrer noopener">dedicated server</a> with Docker installed. If you need to install Docker, <a href="https://cp.serverstadium.com/regist-user" target="_new" rel="noreferrer noopener">sign up here</a> and refer to the official Docker page for installation instructions.</li>
<li>At least 2GB of RAM on your server for optimal performance.</li>
<li>Administrative or sudo privileges on your server.</li>
</ul>
<h3>Step 1: Pull the PostgreSQL Docker Image</h3>
<ol>
<li><strong>Download the PostgreSQL Image</strong><br />
Pull the latest PostgreSQL image from the Docker Hub: <div class="shortcode-code">
<p> docker pull postgres<br />
</p></div></li>
</ol>
<h3>Step 2: Run PostgreSQL in a Docker Container</h3>
<ol>
<li><strong>Start the PostgreSQL Container</strong><br />
Run a PostgreSQL container with a specified username, password, and database name: <div class="shortcode-code">
<p> docker run &#8211;name mypostgres -e POSTGRES_USER=myuser -e POSTGRES_PASSWORD=mypass -e POSTGRES_DB=mydb -p 5432:5432 -d postgres<br />
</p></div> This command sets environment variables for the user, password, and database, and maps port 5432 on the host to port 5432 in the container.</li>
</ol>
<h3>Step 3: Configure Persistent Data Storage</h3>
<ol>
<li><strong>Create a Docker Volume</strong><br />
To ensure data persistence across container restarts, create a Docker volume: <div class="shortcode-code">
<p> docker volume create pgdata<br />
</p></div></li>
<li><strong>Attach the Volume to the PostgreSQL Container</strong><br />
Start the PostgreSQL container with the volume attached: <div class="shortcode-code">
<p> docker run &#8211;name mypostgres -e POSTGRES_USER=myuser -e POSTGRES_PASSWORD=mypass -e POSTGRES_DB=mydb -p 5432:5432 -v pgdata:/var/lib/postgresql/data -d postgres<br />
</p></div></li>
</ol>
<h3>Step 4: Access and Manage the PostgreSQL Database</h3>
<ol>
<li><strong>Connect to the PostgreSQL Database</strong><br />
Connect to your PostgreSQL database using <code>psql</code> or any database management tool: <div class="shortcode-code">
<p> psql -h localhost -p 5432 -U myuser -d mydb<br />
</p></div> You will be prompted to enter the password specified earlier.</li>
</ol>
<h3>Step 5: Backup and Restore</h3>
<ol>
<li><strong>Backup the PostgreSQL Database</strong><br />
Backup your database using the <code>pg_dump</code> tool: <div class="shortcode-code">
<p> docker exec mypostgres pg_dump -U myuser mydb &gt; mydb_backup.sql<br />
</p></div></li>
<li><strong>Restore the PostgreSQL Database</strong><br />
Restore your database using <code>psql</code>: <div class="shortcode-code">
<p> cat mydb_backup.sql | docker exec -i mypostgres psql -U myuser -d mydb<br />
</p></div></li>
</ol>
<h3>Conclusion</h3>
<p>You have successfully set up a PostgreSQL database using Docker on your Server Stadium cloud VM or dedicated server. This setup not only ensures your data is managed efficiently but also leverages Docker for ease of deployment and scalability.</p>
<p>For more information on managing your PostgreSQL installation or other Docker-based applications, visit our <a href="https://serverstadium.com/knowledge-base/" target="_new" rel="noreferrer noopener">knowledge base</a> or consult the <a href="https://serverstadium.com/" target="_new" rel="noreferrer noopener">Server Stadium website</a>.</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/setting-up-postgresql-with-docker-on-server-stadium/">Setting Up PostgreSQL with Docker on Server Stadium Cloud VMs or Dedicated Servers</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Remotely Deploying Docker Containers to Your Server Stadium Cloud VM</title>
		<link>https://serverstadium.com/knowledge-base/remotely-deploying-docker-containers-to-cloud-vm/</link>
		
		<dc:creator><![CDATA[Brian K]]></dc:creator>
		<pubDate>Fri, 24 May 2024 17:37:36 +0000</pubDate>
				<guid isPermaLink="false">https://serverstadium.com/?post_type=epkb_post_type_1&#038;p=11947</guid>

					<description><![CDATA[<p>Introduction Deploying Docker containers remotely to a cloud VM can streamline the management of applications by using centralized commands from your local machine. This guide will cover the setup of Docker for remote management and demonstrate how to deploy a container to a Server Stadium cloud VM. Prerequisites A Server Stadium cloud VM running a&#8230;</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/remotely-deploying-docker-containers-to-cloud-vm/">Remotely Deploying Docker Containers to Your Server Stadium Cloud VM</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h3>Introduction</h3>
<p>Deploying Docker containers remotely to a cloud VM can streamline the management of applications by using centralized commands from your local machine. This guide will cover the setup of Docker for remote management and demonstrate how to deploy a container to a Server Stadium cloud VM.</p>
<h3>Prerequisites</h3>
<ul>
<li>A Server Stadium <a href="https://serverstadium.com/pricing/" target="_new" rel="noreferrer noopener">cloud VM</a> running a supported OS (e.g., Ubuntu 20.04 LTS or 22.04 LTS). If you do not have an account, <a href="https://cp.serverstadium.com/regist-user" target="_new" rel="noreferrer noopener">sign up here</a>.</li>
<li>Docker installed both on your local machine and the cloud VM.</li>
<li>SSH access to the cloud VM.</li>
<li>An understanding of basic Docker operations and SSH commands.</li>
</ul>
<h3>Step 1: Configure Docker for Remote Access on the Cloud VM</h3>
<ol>
<li><strong>Access Your VM</strong><br />
Connect to your cloud VM via SSH:<br />
<div class="shortcode-code">
<p> ssh username@vm-ip-address<br />
</p></div></li>
<li><strong>Configure the Docker Daemon</strong><br />
Edit the Docker configuration to allow remote connections:<br />
<div class="shortcode-code">
<p> sudo nano /lib/systemd/system/docker.service<br />
</p></div> Modify the <code>ExecStart</code> line as follows:<br />
<div class="shortcode-code">
<p> ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock<br />
</p></div><br />
This configuration allows Docker to listen for connections on port 2375 from any IP address and through the local Unix socket.</li>
<li><strong>Restart Docker Service</strong><br />
Apply the changes and restart Docker:<br />
<div class="shortcode-code">
<p> sudo systemctl daemon-reload<br />
sudo systemctl restart docker<br />
</p></div></li>
<li><strong>Secure the Docker Daemon</strong><br />
Since opening Docker to remote connections can pose a security risk, it&#8217;s recommended to secure access using firewall rules or setting up TLS for Docker.</li>
</ol>
<h3>Step 2: Deploy Containers from Your Local Machine</h3>
<ol>
<li><strong>Set Docker Host Environment Variable</strong><br />
Set the <code>DOCKER_HOST</code> environment variable on your local machine:<br />
<div class="shortcode-code">
<p> export DOCKER_HOST=tcp://vm-ip-address:2375<br />
</p></div></li>
<li><strong>Deploy a Docker Container</strong><br />
Deploy an Nginx container from your local machine:<br />
<div class="shortcode-code">
<p> docker run -d -p 80:80 &#8211;name mynginx nginx<br />
</p></div></li>
</ol>
<h3>Step 3: Verify Deployment</h3>
<ol>
<li><strong>Check Container Status</strong><br />
Verify the container is running properly:<br />
<div class="shortcode-code">
<p> docker ps<br />
</p></div></li>
<li><strong>Access the Web Server</strong><br />
Access the Nginx welcome page via <code>http://vm-ip-address</code>.</li>
</ol>
<h3>Conclusion</h3>
<p>Remote deployment of Docker containers allows for flexible management of applications across cloud infrastructure. By configuring your Server Stadium cloud VM to accept Docker commands remotely, you streamline the deployment process and enhance operational efficiency.</p>
<p>For further guidance on Docker security, automating deployments, or optimizing your Docker setup, visit the Server Stadium <a href="https://serverstadium.com/knowledge-base/" target="_new" rel="noreferrer noopener">knowledge base</a> or contact support through the Server Stadium website.</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/remotely-deploying-docker-containers-to-cloud-vm/">Remotely Deploying Docker Containers to Your Server Stadium Cloud VM</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Building and Managing a Private Docker Registry</title>
		<link>https://serverstadium.com/knowledge-base/building-and-managing-a-private-docker-registry/</link>
		
		<dc:creator><![CDATA[Brian K]]></dc:creator>
		<pubDate>Fri, 05 Jan 2024 00:59:52 +0000</pubDate>
				<guid isPermaLink="false">https://serverstadium.com/?post_type=epkb_post_type_1&#038;p=11885</guid>

					<description><![CDATA[<p>Introduction Setting up a private Docker registry on ServerStadium’s infrastructure (VM Pricing, Dedicated Servers) offers control over Docker image distribution and security, which is crucial for sensitive or proprietary projects. Prerequisites A ServerStadium VM or dedicated server (VM Pricing, Dedicated Servers) Basic knowledge of Docker and Linux server administration. Docker installed on your server. Step&#8230;</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/building-and-managing-a-private-docker-registry/">Building and Managing a Private Docker Registry</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h3>Introduction</h3>
<p>Setting up a private Docker registry on ServerStadium’s infrastructure (<a href="https://serverstadium.com/pricing/" target="_new" rel="noopener">VM Pricing</a>, <a href="https://serverstadium.com/dedicated-server/" target="_new" rel="noopener">Dedicated Servers</a>) offers control over Docker image distribution and security, which is crucial for sensitive or proprietary projects.</p>
<h3>Prerequisites</h3>
<ul>
<li>A ServerStadium VM or dedicated server (<a href="https://serverstadium.com/pricing/" target="_new" rel="noopener">VM Pricing</a>, <a href="https://serverstadium.com/dedicated-server/" target="_new" rel="noopener">Dedicated Servers</a>)</li>
<li>Basic knowledge of Docker and Linux server administration.</li>
<li>Docker installed on your server.</li>
</ul>
<h3>Step 1: Set Up Your ServerStadium Server</h3>
<ol>
<li><strong>Choose a Server</strong>: Opt for a ServerStadium server that meets the storage requirements for your Docker images.</li>
<li><strong>Server Preparation</strong>:
<div class="shortcode-code">
<p> sudo apt update<br />
sudo apt upgrade </p></div></li>
</ol>
<h3>Step 2: Install Docker</h3>
<ol>
<li><strong>Install Docker</strong>:
<p>If Docker is not already installed, install it:</p>
<div class="shortcode-code">
<p> sudo apt install docker.io </p></div></li>
</ol>
<h3>Step 3: Deploy the Docker Registry</h3>
<ol>
<li><strong>Run Docker Registry Container</strong>:
<p>Deploy the official Docker registry as a container:</p>
<div class="shortcode-code">
<p> sudo docker run -d -p 5000:5000 &#8211;restart=always &#8211;name registry registry:2 </p></div>
<p>This command starts a Docker registry listening on port 5000.</li>
</ol>
<h3>Step 4: Secure Your Registry</h3>
<ol>
<li><strong>Implement SSL/TLS</strong>:
<p>For production environments, configure SSL/TLS to secure your registry:</p>
<ul>
<li>Place your SSL certificate and key in a directory (e.g., <code>/certs</code>).</li>
<li>Rerun the registry container with SSL enabled:
<div class="shortcode-code">
<p> sudo docker run -d -p 5000:5000 &#8211;restart=always &#8211;name registry<br />
-v /certs:/certs -e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/domain.crt<br />
-e REGISTRY_HTTP_TLS_KEY=/certs/domain.key registry:2 </p></div></li>
</ul>
</li>
<li><strong>Set Up Basic Authentication</strong> (Optional):
<ul>
<li>Use <code>htpasswd</code> to create a password file.</li>
<li>Restart the registry container with the <code>-v</code> flag to mount the auth directory.</li>
</ul>
</li>
</ol>
<h3>Step 5: Manage and Use Your Registry</h3>
<ol>
<li><strong>Push and Pull Images</strong>:
<ul>
<li>Tag your Docker images with your registry&#8217;s address and port.</li>
<li>Push images using <code>docker push</code> and pull images using <code>docker pull</code>.</li>
</ul>
</li>
<li><strong>Registry Maintenance</strong>:
<p>Regularly monitor and back up your registry data. Implement automated cleanup scripts if necessary.</li>
</ol>
<h3>Conclusion</h3>
<p>Your private Docker registry on ServerStadium is now operational, offering a secure and efficient way to manage Docker images. For additional support or advanced configurations like registry clustering and storage backends, visit our <a href="https://serverstadium.com/knowledge-base/" target="_new" rel="noopener">knowledge base</a> or contact our <a href="https://serverstadium.com/" target="_new" rel="noopener">support team</a>.</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/building-and-managing-a-private-docker-registry/">Building and Managing a Private Docker Registry</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Securing Docker Containers with AppArmor or SELinux</title>
		<link>https://serverstadium.com/knowledge-base/securing-docker-containers-with-apparmor-or-selinux/</link>
		
		<dc:creator><![CDATA[Brian K]]></dc:creator>
		<pubDate>Thu, 04 Jan 2024 23:55:01 +0000</pubDate>
				<guid isPermaLink="false">https://serverstadium.com/?post_type=epkb_post_type_1&#038;p=11865</guid>

					<description><![CDATA[<p>Introduction AppArmor and SELinux are essential for enhancing the security of Docker containers on ServerStadium’s infrastructure (VM Pricing, Dedicated Servers). These tools help in defining and managing access controls, making Docker environments more secure and resilient. Prerequisites A ServerStadium VM or dedicated server (VM Pricing, Dedicated Servers). Docker installed on the server. Basic understanding of&#8230;</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/securing-docker-containers-with-apparmor-or-selinux/">Securing Docker Containers with AppArmor or SELinux</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h3>Introduction</h3>
<p>AppArmor and SELinux are essential for enhancing the security of Docker containers on ServerStadium’s infrastructure (<a href="https://serverstadium.com/pricing/" target="_new" rel="noopener">VM Pricing</a>, <a href="https://serverstadium.com/dedicated-server/" target="_new" rel="noopener">Dedicated Servers</a>). These tools help in defining and managing access controls, making Docker environments more secure and resilient.</p>
<h3>Prerequisites</h3>
<ul>
<li>A ServerStadium VM or dedicated server (<a href="https://serverstadium.com/pricing/" target="_new" rel="noopener">VM Pricing</a>, <a href="https://serverstadium.com/dedicated-server/" target="_new" rel="noopener">Dedicated Servers</a>).</li>
<li>Docker installed on the server.</li>
<li>Basic understanding of Linux security and containerization concepts.</li>
</ul>
<h3>Step 1: Set Up Your ServerStadium Environment</h3>
<ol>
<li><strong>Select a Server</strong>: Choose a ServerStadium server based on your Docker deployment needs.</li>
<li><strong>Prepare the Server</strong>:
<div class="shortcode-code">
<p> sudo apt update<br />
sudo apt upgrade </p></div></li>
</ol>
<h3>Step 2: Install and Enable SELinux or AppArmor</h3>
<ol>
<li><strong>Install SELinux or AppArmor</strong>:
<p>Depending on your Linux distribution, install either SELinux or AppArmor:</p>
<ul>
<li>For SELinux:
<div class="shortcode-code">
<p> sudo apt install selinux-utils selinux-basics sudo selinux-activate sudo selinux-config-enforcing </p></div></li>
<li>For AppArmor:
<div class="shortcode-code">
<p> sudo apt install apparmor apparmor-profiles apparmor-utils </p></div></li>
</ul>
</li>
<li><strong>Enable and Configure the Security Module</strong>:
<p>Ensure that the security module is enabled and properly configured on your system.</li>
</ol>
<h3>Step 3: Apply Security Profiles to Docker Containers</h3>
<ol>
<li><strong>Use Default Profiles</strong>:
<p>Docker automatically applies default AppArmor or SELinux profiles to containers for basic security.</li>
<li><strong>Create Custom Profiles</strong>:
<p>For advanced security needs, create custom AppArmor or SELinux profiles:</p>
<ul>
<li>For AppArmor, create a profile in <code>/etc/apparmor.d/</code>.</li>
<li>For SELinux, use tools like <code>audit2allow</code> to generate custom policies.</li>
</ul>
</li>
</ol>
<h3>Step 4: Run Docker Containers with Security Profiles</h3>
<ol>
<li><strong>Start Containers with Custom Profiles</strong>:
<p>When running Docker containers, specify the security profile:</p>
<ul>
<li>For AppArmor:
<div class="shortcode-code">
<p> docker run &#8211;security-opt apparmor=your_profile_name your_image </p></div></li>
<li>For SELinux:
<div class="shortcode-code">
<p> docker run &#8211;security-opt label=type:your_type_name your_image </p></div></li>
</ul>
</li>
</ol>
<h3>Step 5: Monitor and Audit Container Security</h3>
<ol>
<li><strong>Audit and Log Security Events</strong>:
<p>Regularly review security logs to monitor for any unauthorized access attempts or policy violations.</li>
</ol>
<h3>Conclusion</h3>
<p>By securing Docker containers with AppArmor or SELinux on ServerStadium servers, you ensure a higher level of security for your containerized applications. This approach is vital for maintaining the integrity and security of your Docker environments. For more detailed guidance, visit our <a href="https://serverstadium.com/knowledge-base/" target="_new" rel="noopener">knowledge base</a> or contact our <a href="https://serverstadium.com/" target="_new" rel="noopener">support team</a>.</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/securing-docker-containers-with-apparmor-or-selinux/">Securing Docker Containers with AppArmor or SELinux</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Setting Up Bitwarden on ServerStadium</title>
		<link>https://serverstadium.com/knowledge-base/setting-up-bitwarden-on-serverstadium/</link>
		
		<dc:creator><![CDATA[Brian K]]></dc:creator>
		<pubDate>Thu, 04 Jan 2024 05:41:03 +0000</pubDate>
				<guid isPermaLink="false">https://serverstadium.com/?post_type=epkb_post_type_1&#038;p=11822</guid>

					<description><![CDATA[<p>Introduction Bitwarden is a highly regarded open-source password management solution, known for its robust security features and ease of use. By setting up Bitwarden on ServerStadium&#8217;s infrastructure (VM Pricing, Dedicated Servers), you can create a private and secure environment for managing passwords, essential for both personal and business use. Setting Up Bitwarden on ServerStadium Prerequisites&#8230;</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/setting-up-bitwarden-on-serverstadium/">Setting Up Bitwarden on ServerStadium</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Introduction</h2>
<p>Bitwarden is a highly regarded open-source password management solution, known for its robust security features and ease of use. By setting up Bitwarden on ServerStadium&#8217;s infrastructure (<a href="https://serverstadium.com/pricing/" target="_new" rel="noopener">VM Pricing</a>, <a href="https://serverstadium.com/dedicated-server/" target="_new" rel="noopener">Dedicated Servers</a>), you can create a private and secure environment for managing passwords, essential for both personal and business use.</p>
<h2>Setting Up Bitwarden on ServerStadium</h2>
<h3>Prerequisites</h3>
<ul>
<li>A ServerStadium VM or dedicated server (<a href="https://serverstadium.com/pricing/" target="_new" rel="noopener">VM Pricing</a>, <a href="https://serverstadium.com/dedicated-server/" target="_new" rel="noopener">Dedicated Servers</a>).</li>
<li>Basic knowledge of Docker and containerization.</li>
</ul>
<h3>Step 1: Select and Prepare Your ServerStadium Server</h3>
<ol>
<li><strong>Choose a Server</strong>: Opt for a ServerStadium server that fits the requirements for running Bitwarden, which is lightweight but should have enough storage for your data.</li>
<li><strong>Server Setup</strong>:
<div class="shortcode-code">
<p> sudo apt update<br />
sudo apt upgrade </p></div></li>
</ol>
<h3>Step 2: Install Docker and Docker Compose</h3>
<p>Bitwarden runs in Docker containers, making it platform-independent and easy to update:</p>
<ol>
<li><strong>Install Docker</strong>:
<div class="shortcode-code">
<p> sudo apt install apt-transport-https ca-certificates curl software-properties-common<br />
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add &#8211;<br />
sudo add-apt-repository &quot;deb &#091;arch=amd64&#093; https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable&quot;<br />
sudo apt update<br />
sudo apt install docker-ce </p></div></li>
<li><strong>Install Docker Compose</strong>:
<div class="shortcode-code">
<p> sudo curl -L &quot;https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)&quot; -o /usr/local/bin/docker-compose<br />
sudo chmod +x /usr/local/bin/docker-compose </p></div></li>
</ol>
<h3>Step 3: Install and Configure Bitwarden</h3>
<ol>
<li><strong>Install Bitwarden</strong>:
<p>Bitwarden provides a script to simplify installation:</p>
<div class="shortcode-code">
<p> curl -Lso bitwarden.sh https://go.btwrdn.co/bw-sh<br />
chmod +x bitwarden.sh<br />
./bitwarden.sh install </p></div>
<p>Follow the prompts to complete the installation.</li>
<li><strong>Start Bitwarden</strong>:
<div class="shortcode-code">
<p> ./bitwarden.sh start </p></div></li>
</ol>
<h3>Step 4: Accessing Bitwarden</h3>
<ol>
<li><strong>Access Bitwarden Web Vault</strong>:
<p>Navigate to <code>http://your_server_ip</code> to access your Bitwarden instance.</li>
<li><strong>Register Account</strong>:
<p>Create an account to begin using Bitwarden for password management.</li>
</ol>
<h3>Step 5: Configure and Use Bitwarden</h3>
<ol>
<li><strong>Configure Bitwarden</strong>:
<p>Set up organizations, collections, and user groups as needed for managing access and sharing.</li>
<li><strong>Install Bitwarden Clients</strong>:
<p>Install Bitwarden clients on your devices (available for various platforms) to sync and manage passwords across devices.</li>
</ol>
<h3>Conclusion</h3>
<p>Your self-hosted Bitwarden instance is now operational on a ServerStadium server, providing a secure and private solution for password management. For additional resources or support, visit our <a href="https://serverstadium.com/knowledge-base/" target="_new" rel="noopener">knowledge base</a> or contact our support team.</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/setting-up-bitwarden-on-serverstadium/">Setting Up Bitwarden on ServerStadium</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Setting Up a Node.js Application Using Docker and Nginx on ServerStadium</title>
		<link>https://serverstadium.com/knowledge-base/setting-up-a-node-js-application-using-docker-and-nginx-on-serverstadium/</link>
		
		<dc:creator><![CDATA[Brian K]]></dc:creator>
		<pubDate>Thu, 04 Jan 2024 02:28:28 +0000</pubDate>
				<guid isPermaLink="false">https://serverstadium.com/?post_type=epkb_post_type_1&#038;p=11762</guid>

					<description><![CDATA[<p>This tutorial guides you through creating a secure and scalable environment for a Node.js application using Docker and Nginx on ServerStadium&#8217;s infrastructure. Prerequisites A ServerStadium VM or dedicated server. Review the options at ServerStadium VM Pricing and Dedicated Servers. Basic knowledge of Docker, Nginx, and Node.js. Step 1: Prepare Your ServerStadium Environment Select and Set&#8230;</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/setting-up-a-node-js-application-using-docker-and-nginx-on-serverstadium/">Setting Up a Node.js Application Using Docker and Nginx on ServerStadium</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>This tutorial guides you through creating a secure and scalable environment for a Node.js application using Docker and Nginx on ServerStadium&#8217;s infrastructure.</p>
<h3>Prerequisites</h3>
<ul>
<li>A ServerStadium VM or dedicated server. Review the options at <a href="https://serverstadium.com/pricing/" target="_new" rel="noopener">ServerStadium VM Pricing</a> and <a href="https://serverstadium.com/dedicated-server/" target="_new" rel="noopener">Dedicated Servers</a>.</li>
<li>Basic knowledge of Docker, Nginx, and Node.js.</li>
</ul>
<h3>Step 1: Prepare Your ServerStadium Environment</h3>
<ol>
<li><strong>Select and Set Up Your Server</strong>: Choose a VM or dedicated server from ServerStadium. A medium-sized VM should suffice for most Node.js applications.</li>
<li><strong>Server Setup</strong>: Access your server via SSH. Update the system:<br />
<div class="shortcode-code">
<p>sudo apt update<br />
sudo apt upgrade</p></div></li>
</ol>
<h3>Step 2: Install Docker</h3>
<ol>
<li><strong>Install Docker</strong>: Install Docker on your ServerStadium environment:<br />
<div class="shortcode-code">
<p>sudo apt install docker.io</p></div></li>
<li><strong>Start and Enable Docker</strong>:<br />
<div class="shortcode-code">
<p>sudo systemctl start docker<br />
sudo systemctl enable docker</p></div></li>
<li><strong>Verify Installation</strong>:<br />
<div class="shortcode-code">
<p>docker &#8211;version</p></div></li>
</ol>
<h3>Step 3: Create Your Node.js Application</h3>
<ol>
<li><strong>Application Setup</strong>: On your local machine, create a basic Node.js application. For example, an Express.js application.</li>
<li><strong>Dockerize the Application</strong>: Create a <code>Dockerfile</code> in your application directory:
<div class="shortcode-code">
<p>FROM node:14</p>
<p>WORKDIR /usr/src/app</p>
<p>COPY package*.json ./</p>
<p>RUN npm install</p>
<p>COPY . .</p>
<p>EXPOSE 8080</p>
<p>CMD &#091; &quot;node&quot;, &quot;app.js&quot; &#093;</p>
<p></p></div></li>
<li><strong>Build Your Docker Image</strong>:<br />
<div class="shortcode-code">
<p>docker build -t mynodeapp .</p></div></li>
<li><strong>Run the Docker Container</strong>:<br />
<div class="shortcode-code">
<p>docker run -d -p 8080:8080 mynodeapp</p></div></li>
</ol>
<h3>Step 4: Install and Configure Nginx as a Reverse Proxy</h3>
<ol>
<li><strong>Install Nginx</strong>:<br />
<div class="shortcode-code">
<p>sudo apt install nginx</p></div></li>
<li><strong>Configure Nginx</strong>:
<p>Create a new site configuration file:<br />
<div class="shortcode-code">
<p>sudo nano /etc/nginx/sites-available/mynodeapp</p></div><br />
Add the following configuration:</p>
<div class="shortcode-code">
<p>server {<br />
listen 80;</p>
<p>server_name your_domain.com;</p>
<p>location / {<br />
proxy_pass http://localhost:8080;<br />
proxy_http_version 1.1;<br />
proxy_set_header Upgrade $http_upgrade;<br />
proxy_set_header Connection &#039;upgrade&#039;;<br />
proxy_set_header Host $host;<br />
proxy_cache_bypass $http_upgrade;<br />
}<br />
}</p>
<p></p></div><br />
Enable the new site:<br />
<div class="shortcode-code">
<p>sudo ln -s /etc/nginx/sites-available/mynodeapp /etc/nginx/sites-enabled/<br />
sudo nginx -t<br />
sudo systemctl restart nginx</p></div></li>
<li><strong>Firewall Configuration</strong>: If you have a firewall enabled, allow Nginx traffic:<br />
<div class="shortcode-code">
<p>sudo ufw allow &lt;span class=&quot;hljs-string&quot;&gt;&#039;Nginx Full&#039;&lt;/span&gt;</p></div></li>
</ol>
<h3>Step 5: Deploy Your Application</h3>
<ol>
<li><strong>Transfer Your Docker Image</strong>: Use <code>docker save</code> and <code>docker load</code> or a Docker registry to transfer your Docker image to your ServerStadium server.</li>
<li><strong>Run Your Docker Container</strong>: On the server, run your Docker container as before.</li>
</ol>
<h3>Step 6: Secure Your Application</h3>
<ol>
<li><strong>SSL Certificate</strong>: Obtain an SSL certificate for your domain (you can use Let&#8217;s Encrypt for a free certificate) and configure Nginx to use it.</li>
<li><strong>Environment Variables</strong>: Use environment variables for sensitive information like database passwords.</li>
</ol>
<h3>Conclusion</h3>
<p>You now have a scalable and secure Node.js application running in a Docker container, with Nginx as a reverse proxy on a ServerStadium server. This setup ensures efficient load handling and enhanced security for your application.</p>
<p>For additional assistance, visit our <a href="https://serverstadium.com/knowledge-base/" target="_new" rel="noopener">knowledge base</a> or contact our support team.</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/setting-up-a-node-js-application-using-docker-and-nginx-on-serverstadium/">Setting Up a Node.js Application Using Docker and Nginx on ServerStadium</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Deploying a Containerized Application with Docker on ServerStadium</title>
		<link>https://serverstadium.com/knowledge-base/deploying-a-containerized-application-with-docker-on-serverstadium/</link>
		
		<dc:creator><![CDATA[Brian K]]></dc:creator>
		<pubDate>Thu, 04 Jan 2024 01:40:48 +0000</pubDate>
				<guid isPermaLink="false">https://serverstadium.com/?post_type=epkb_post_type_1&#038;p=11754</guid>

					<description><![CDATA[<p>In this tutorial, we&#8217;ll guide you through the process of setting up Docker on a ServerStadium VM instance and deploying a containerized application. This approach is ideal for creating isolated, scalable, and efficient application environments. Prerequisites Ensure you have a ServerStadium account and a VM instance ready. If not, register and set up your VM&#8230;</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/deploying-a-containerized-application-with-docker-on-serverstadium/">Deploying a Containerized Application with Docker on ServerStadium</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In this tutorial, we&#8217;ll guide you through the process of setting up Docker on a ServerStadium VM instance and deploying a containerized application. This approach is ideal for creating isolated, scalable, and efficient application environments.</p>
<h3>Prerequisites</h3>
<p>Ensure you have a ServerStadium account and a VM instance ready. If not, <a href="https://cp.serverstadium.com/regist-user" target="_new" rel="noopener">register</a> and set up your VM instance via the <a href="https://cp.serverstadium.com/" target="_new" rel="noopener">Cloud Panel</a>.</p>
<h3>Step 1: Set Up Your ServerStadium VM Instance</h3>
<p>Log into the ServerStadium <a href="https://cp.serverstadium.com/" target="_new" rel="noopener">Cloud Panel</a> and create a new VM instance. Choose an operating system that is compatible with Docker, such as Ubuntu 20.04 or 22.04. You can find suitable VM configurations and pricing details on our <a href="https://serverstadium.com/pricing/" target="_new" rel="noopener">pricing page</a>.</p>
<h3>Step 2: Install Docker</h3>
<p>Once your VM instance is ready, connect to it via SSH. Update your package list and install Docker:</p>
<div class="shortcode-code">
<p>sudo apt update<br />
sudo apt install docker.io</p></div>
<p>Start and enable Docker:</p>
<div class="shortcode-code">
<p>sudo systemctl start docker<br />
sudo systemctl enable docker</p></div>
<p>Verify the installation:</p>
<div class="shortcode-code">
<p>docker &#8211;version</p></div>
<h3>Step 3: Working with Docker Containers</h3>
<p>Docker allows you to run applications in containers. For this tutorial, let&#8217;s run a simple &#8220;Hello World&#8221; container to demonstrate:</p>
<div class="shortcode-code">
<p>docker run hello-world</p></div>
<p>This command pulls the &#8220;Hello World&#8221; image from the Docker Hub and runs it in a container. You should see a message indicating that your Docker installation is working correctly.</p>
<h3>Step 4: Deploy Your Containerized Application</h3>
<p>Now, let&#8217;s deploy a more complex application. For example, you might want to run a Nginx web server. Pull the Nginx image from Docker Hub:</p>
<div class="shortcode-code">
<p>docker pull nginx</p></div>
<p>Run the Nginx container:</p>
<div class="shortcode-code">
<p>docker run -d -p 80:80 &#8211;name mynginx nginx</p></div>
<p>This command runs Nginx in a detached mode, maps port 80 on the container to port 80 on your VM, and gives the container a name.</p>
<p>You can now access your Nginx server by visiting your VM&#8217;s IP address in a web browser.</p>
<h3>Step 5: Managing Docker Containers</h3>
<p>Learn basic commands to manage your Docker containers:</p>
<ul>
<li>List running containers: <code>docker ps</code></li>
<li>Stop a container: <code>docker stop mynginx</code></li>
<li>Start a stopped container: <code>docker start mynginx</code></li>
<li>Remove a container: <code>docker rm mynginx</code></li>
</ul>
<h3>Conclusion</h3>
<p>You&#8217;ve successfully set up Docker on your ServerStadium VM and deployed a containerized application. Docker, combined with ServerStadium&#8217;s VM instances, offers a powerful platform for developing and deploying applications with ease and efficiency.</p>
<p>For further information and support, check our <a href="https://serverstadium.com/knowledge-base/" target="_new" rel="noopener">knowledge base</a> or contact our support team.</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/deploying-a-containerized-application-with-docker-on-serverstadium/">Deploying a Containerized Application with Docker on ServerStadium</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Deploy a Dockerized WordPress Site on ServerStadium&#8217;s Cloud Instances</title>
		<link>https://serverstadium.com/knowledge-base/how-to-deploy-a-dockerized-wordpress-site-on-serverstadiums-cloud-instances/</link>
		
		<dc:creator><![CDATA[Brian K]]></dc:creator>
		<pubDate>Sat, 27 May 2023 01:45:47 +0000</pubDate>
				<guid isPermaLink="false">https://serverstadium.com/?post_type=epkb_post_type_1&#038;p=11682</guid>

					<description><![CDATA[<p>WordPress is one of the world&#8217;s most popular content management systems (CMS). On the other hand, Docker is a platform that makes it easier to create, deploy, and run applications using containers. Combining the two, you can easily deploy a Dockerized WordPress site. This guide will take you through deploying a Dockerized WordPress site on&#8230;</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/how-to-deploy-a-dockerized-wordpress-site-on-serverstadiums-cloud-instances/">How to Deploy a Dockerized WordPress Site on ServerStadium&#8217;s Cloud Instances</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>WordPress is one of the world&#8217;s most popular content management systems (CMS). On the other hand, Docker is a platform that makes it easier to create, deploy, and run applications using containers. Combining the two, you can easily deploy a Dockerized WordPress site. This guide will take you through deploying a Dockerized WordPress site on ServerStadium&#8217;s Cloud Instances.</p>
<p>Remember to visit our <a href="https://serverstadium.com/knowledge-base/" target="_new" rel="noopener">Knowledge Base</a> for additional tutorials and guides.</p>
<h2>Step 1: Register Your Account</h2>
<p>First, you’ll need to register an account on our <a href="https://cp.serverstadium.com/regist-user" target="_new" rel="noopener">Registration Page</a>. After filling out your details and creating your account, you’ll gain access to your personal Cloud Dashboard.</p>
<h2>Step 2: Choose Your Cloud Instance</h2>
<p>From your Cloud Dashboard, go to the ‘Add VM’ section. Here, you’ll find a variety of cloud instance options. Select the one that suits your needs. If you need help deciding, our <a href="https://serverstadium.com/pricing/" target="_new" rel="noopener">Instance Pricing Guide</a> can help you.</p>
<h2>Step 3: Install Docker</h2>
<p>After you&#8217;ve chosen your instance, the next step is to install Docker. To install Docker on your ServerStadium Cloud Instance, follow the instructions in our <a href="https://serverstadium.com/knowledge-base/setting-up-a-docker-environment-on-serverstadiums-cloud-instances/" target="_new" rel="noopener">Setting Up a Docker Environment on ServerStadium&#8217;s Cloud Instances</a> guide.</p>
<h2>Step 4: Run a MySQL Container</h2>
<p>Before deploying WordPress, you&#8217;ll need to set up a MySQL database. Docker makes this easy by allowing you to run MySQL in a separate container. Use the following command:</p>
<div class="bg-black rounded-md mb-4">
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-shell">docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -e MYSQL_DATABASE=wordpress -e MYSQL_USER=wordpress -e MYSQL_PASSWORD=wordpress -d mysql:5.7<br />
</code></div>
</div>
<p>This will create a new MySQL container with a database named &#8220;wordpress&#8221;. Remember to replace &#8220;my-secret-pw&#8221; with a secure password.</p>
<h2>Step 5: Deploy a Dockerized WordPress Site</h2>
<p>Now that you have a MySQL container running, you can deploy a Dockerized WordPress site. Use the following command:</p>
<div class="bg-black rounded-md mb-4">
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-shell">docker run -d --name my-wordpress --link some-mysql:mysql -p 80:80 -e WORDPRESS_DB_HOST=mysql -e WORDPRESS_DB_USER=wordpress -e WORDPRESS_DB_PASSWORD=wordpress -e WORDPRESS_DB_NAME=wordpress wordpress<br />
</code></div>
</div>
<p>This will create a new WordPress Docker container and link it to your MySQL container. WordPress will use the database you set up in the previous step.</p>
<h2>Conclusion</h2>
<p>Congratulations! You&#8217;ve just deployed a Dockerized WordPress site on ServerStadium&#8217;s Cloud Instances. With Docker and ServerStadium, deploying WordPress is as simple as running a few commands.</p>
<p>Visit our <a href="https://serverstadium.com/knowledge-base/" target="_new" rel="noopener">Knowledge Base</a> for more tutorials and guides.</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/how-to-deploy-a-dockerized-wordpress-site-on-serverstadiums-cloud-instances/">How to Deploy a Dockerized WordPress Site on ServerStadium&#8217;s Cloud Instances</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Setting Up a Docker Environment on ServerStadium&#8217;s Cloud Instances</title>
		<link>https://serverstadium.com/knowledge-base/setting-up-a-docker-environment-on-serverstadiums-cloud-instances/</link>
		
		<dc:creator><![CDATA[Brian K]]></dc:creator>
		<pubDate>Fri, 26 May 2023 02:21:12 +0000</pubDate>
				<guid isPermaLink="false">https://serverstadium.com/?post_type=epkb_post_type_1&#038;p=11660</guid>

					<description><![CDATA[<p>Docker is a popular platform that simplifies deploying applications inside containers. This tutorial will guide you through setting up a Docker environment on your ServerStadium cloud instance. Remember to visit our Knowledge Base for additional tutorials and guides. Step 1: Register Your Account First, you&#8217;ll need to register an account on our Registration Page. After&#8230;</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/setting-up-a-docker-environment-on-serverstadiums-cloud-instances/">Setting Up a Docker Environment on ServerStadium&#8217;s Cloud Instances</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Docker is a popular platform that simplifies deploying applications inside containers. This tutorial will guide you through setting up a Docker environment on your <strong>ServerStadium</strong> cloud instance.</p>
<p>Remember to visit our <a href="https://serverstadium.com/knowledge-base/" target="_new" rel="noopener">Knowledge Base</a> for additional tutorials and guides.</p>
<h2>Step 1: Register Your Account</h2>
<p>First, you&#8217;ll need to register an account on our <a href="https://cp.serverstadium.com/regist-user" target="_new" rel="noopener">Registration Page</a>. After filling out your details and creating your account, you&#8217;ll gain access to your personal <a href="https://cp.serverstadium.com/" target="_new" rel="noopener">Cloud Dashboard</a>.</p>
<h2>Step 2: Choose Your Cloud Instance</h2>
<p>From your <a href="https://cp.serverstadium.com/" target="_new" rel="noopener">Cloud Dashboard</a>, go to the &#8216;Add VM&#8217; section. Here, you&#8217;ll find a variety of cloud instance options. Select the one that suits your needs. If you need help deciding, our <a href="https://serverstadium.com/pricing" target="_new" rel="noopener">Instance Pricing Guide</a> can guide you.</p>
<h2>Step 3: Install Docker</h2>
<p>With your cloud instance ready, you can proceed to install Docker. Connect to your instance via SSH and run the following commands:</p>
<div class="bg-black rounded-md mb-4">
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash">sudo apt-get update<br />
</code></div>
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash">sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release<br />
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg</code><code class="!whitespace-pre hljs language-bash"></code><code class="!whitespace-pre hljs language-bash"></code></div>
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash"><span class="hljs-built_in">echo</span> \<br />
<span class="hljs-string">"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \<br />
<span class="hljs-subst">$(lsb_release -cs)</span> stable"</span> | sudo <span class="hljs-built_in">tee</span> /etc/apt/sources.list.d/docker.list &gt; /dev/null<br />
</code></div>
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash">sudo apt-get update<br />
</code></div>
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash">sudo apt-get install docker-ce docker-ce-cli containerd.io<br />
</code></div>
</div>
<p>This will install Docker on your cloud instance. To verify the installation, type <code>docker --version</code>. You should see the version of Docker that&#8217;s been installed.</p>
<h2>Step 4: Run Your First Docker Container</h2>
<p>Now that Docker is installed, you can run your first Docker container. Let&#8217;s run a simple &#8220;Hello World&#8221; application to test everything is working correctly:</p>
<div class="bg-black rounded-md mb-4">
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash">sudo docker run hello-world<br />
</code></div>
</div>
<p>You should see a message indicating that your Docker installation is working correctly.</p>
<h2>Conclusion</h2>
<p>Congratulations! You now have a Docker environment set up on your ServerStadium cloud instance. You&#8217;re ready to start deploying applications in Docker containers and leveraging the powerful features of ServerStadium&#8217;s cloud instances.</p>
<p>Our <a href="https://serverstadium.com/pricing/">Knowledge Base</a> is always filled with other tutorials, guides, and tips. If you need any help, don&#8217;t hesitate to contact our <a href="https://serverstadium.com/contact-us/">support team</a>.</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/setting-up-a-docker-environment-on-serverstadiums-cloud-instances/">Setting Up a Docker Environment on ServerStadium&#8217;s Cloud Instances</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Monitor Your Services Uptime Using Uptime Kuma</title>
		<link>https://serverstadium.com/knowledge-base/monitor-your-services-uptime-using-uptime-kuma/</link>
		
		<dc:creator><![CDATA[Brian K]]></dc:creator>
		<pubDate>Mon, 04 Apr 2022 15:35:09 +0000</pubDate>
				<guid isPermaLink="false">https://cloudraya.com/knowledge-base/?p=1748</guid>

					<description><![CDATA[<p>Uptime Kuma is a feature-rich yet simple to use uptime monitoring tool. It will allow you to monitor your servers and services uptime and also notify you in case of downtime. TLDR (Too Long Didn&#8217;t Read!) Docker approach: Non-docker approach: Step-by-Step Installation Guide Installing, or rather, deploying Uptime Kuma using Docker is the easiest method&#8230;</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/monitor-your-services-uptime-using-uptime-kuma/">Monitor Your Services Uptime Using Uptime Kuma</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Uptime Kuma is a feature-rich yet simple to use uptime monitoring tool. It will allow you to monitor your servers and services uptime and also notify you in case of downtime.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img fetchpriority="high" decoding="async" width="1290" height="595" src="https://serverstadium.com/wp-content/uploads/2022/04/image-13.png" alt="" class="wp-image-1964" style="width:968px;height:446px" srcset="https://serverstadium.com/wp-content/uploads/2022/04/image-13.png 1290w, https://serverstadium.com/wp-content/uploads/2022/04/image-13-300x138.png 300w, https://serverstadium.com/wp-content/uploads/2022/04/image-13-1024x472.png 1024w, https://serverstadium.com/wp-content/uploads/2022/04/image-13-768x354.png 768w" sizes="(max-width: 1290px) 100vw, 1290px" /><figcaption class="wp-element-caption">Uptime Kuma main dashboard</figcaption></figure>
</div>


<h2 class="wp-block-heading has-vivid-cyan-blue-color has-text-color">TLDR (Too Long Didn&#8217;t Read!)</h2>



<p class="wp-block-paragraph">Docker approach:</p>



<pre class="wp-block-code"><code># Install Docker CE

docker volume create uptime-kuma

docker run -d --restart=always -p 3001:3001 -v uptime-kuma:/app/data --name uptime-kuma louislam/uptime-kuma:1</code></pre>



<p class="wp-block-paragraph">Non-docker approach:</p>



<pre class="wp-block-code"><code># Install nodejs and npm

# Update npm
sudo npm install npm -g

git clone https://github.com/louislam/uptime-kuma.git
cd uptime-kuma
npm run setup

sudo npm install -g pm2
pm2 start server/server.js --name uptime-kuma
</code></pre>



<h2 class="wp-block-heading has-vivid-cyan-blue-color has-text-color">Step-by-Step Installation Guide</h2>



<p class="wp-block-paragraph">Installing, or rather, deploying Uptime Kuma using Docker is the easiest method as you won&#8217;t need to take care of extra dependency. Just run the crafted docker CLI command, and you&#8217;re all set!</p>



<p class="wp-block-paragraph">But I will also explain how to deploy it using NodeJS plus PM2! So, you can choose which method fits you.</p>



<h3 class="wp-block-heading has-vivid-cyan-blue-color has-text-color">Prerequisites</h3>



<p class="wp-block-paragraph">For both approaches, allow port 3001 from your OS firewall and/or your active ServerStadium Security Profile.</p>



<h3 class="wp-block-heading has-vivid-cyan-blue-color has-text-color">Via Docker</h3>



<h4 class="wp-block-heading has-vivid-cyan-blue-color has-text-color"><strong>Step 1:</strong></h4>



<p class="wp-block-paragraph">Install docker of course! You can follow the guide <a href="https://serverstadium.com/knowledge-base/how-to-deploy-container-in-serverstadium-using-docker/" target="_blank" rel="noreferrer noopener">here</a>.</p>



<h4 class="wp-block-heading has-vivid-cyan-blue-color has-text-color"><strong>Step 2:</strong></h4>



<p class="wp-block-paragraph">Create a docker volume to ensure persistent data</p>



<pre class="wp-block-code"><code>docker volume create uptime-kuma</code></pre>



<h4 class="wp-block-heading has-vivid-cyan-blue-color has-text-color"><strong>Step 3:</strong></h4>



<p class="wp-block-paragraph">Run <strong>uptime-kuma</strong></p>



<pre class="wp-block-code"><code>docker run -d --restart=always -p 3001:3001 -v uptime-kuma:/app/data --name uptime-kuma louislam/uptime-kuma:1</code></pre>



<h4 class="wp-block-heading has-vivid-cyan-blue-color has-text-color"><strong>Step 4: </strong></h4>



<p class="wp-block-paragraph">Make sure uptime-kuma is running!</p>



<pre class="wp-block-code"><code>docker ps</code></pre>



<h4 class="wp-block-heading has-vivid-cyan-blue-color has-text-color"><strong>Step 5:</strong></h4>



<p class="wp-block-paragraph">Proceed to the <a href="#First-time-setup" rel="nofollow">First setup section</a>!</p>



<h3 class="wp-block-heading has-vivid-cyan-blue-color has-text-color">Non-docker deployment</h3>



<p class="wp-block-paragraph">Uptime Kuma requires nodejs version &gt;= 14, git and npm.</p>



<h4 class="wp-block-heading has-vivid-cyan-blue-color has-text-color">Step 1: Installing nodejs package</h4>



<h5 class="wp-block-heading">For RHEL/CentOS/Alma/Rocky 8</h5>



<p class="wp-block-paragraph">Check dnf module for nodejs</p>



<pre class="wp-block-code"><code>sudo dnf module list nodejs</code></pre>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" src="https://serverstadium.com/wp-content/uploads/2021/12/image-13.png" alt="" class="wp-image-1756"/><figcaption class="wp-element-caption">nodejs module list</figcaption></figure>
</div>


<p class="wp-block-paragraph">In this article, I will install version 16:</p>



<pre class="wp-block-code"><code>sudo dnf module install nodejs:16</code></pre>



<h5 class="wp-block-heading">For Ubuntu 20.04</h5>



<p class="wp-block-paragraph">Pull the NodeSource PPA. If you wish to install another version, replace the &#8220;16&#8221; below with any version you want to install:</p>



<pre class="wp-block-code"><code>curl -sL https://deb.nodesource.com/setup_16.x -o nodesource_setup.sh</code></pre>



<p class="wp-block-paragraph">Then, execute the script:</p>



<pre class="wp-block-code"><code>sudo bash nodesource_setup.sh</code></pre>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img decoding="async" width="799" height="432" src="https://serverstadium.com/wp-content/uploads/2022/02/image-3.png" alt="" class="wp-image-1861" style="width:599px;height:324px" srcset="https://serverstadium.com/wp-content/uploads/2022/02/image-3.png 799w, https://serverstadium.com/wp-content/uploads/2022/02/image-3-300x162.png 300w, https://serverstadium.com/wp-content/uploads/2022/02/image-3-768x415.png 768w" sizes="(max-width: 799px) 100vw, 799px" /><figcaption class="wp-element-caption">NodeSource PPA</figcaption></figure>
</div>


<p class="wp-block-paragraph">Lastly, install <strong>nodejs</strong></p>



<pre class="wp-block-code"><code>sudo apt install nodejs -y</code></pre>



<h4 class="wp-block-heading has-vivid-cyan-blue-color has-text-color">Step 2: Building Uptime Kuma</h4>



<p class="wp-block-paragraph">This part and beyond would work for whichever Linux distro you&#8217;re using.</p>



<p class="wp-block-paragraph">Pull Uptime Kuma repo and then enter the cloned directory:</p>



<pre class="wp-block-code"><code>git clone https://github.com/louislam/uptime-kuma.git
cd uptime-kuma</code></pre>



<p class="wp-block-paragraph">After that, run the following command to start building Uptime Kuma:</p>



<pre class="wp-block-code"><code>npm run setup</code></pre>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" width="567" height="407" src="https://serverstadium.com/wp-content/uploads/2021/12/image-14.png" alt="" class="wp-image-1757" srcset="https://serverstadium.com/wp-content/uploads/2021/12/image-14.png 567w, https://serverstadium.com/wp-content/uploads/2021/12/image-14-300x215.png 300w" sizes="(max-width: 567px) 100vw, 567px" /><figcaption class="wp-element-caption">Setting up Uptime Kuma</figcaption></figure>
</div>


<p class="wp-block-paragraph">Once it&#8217;s done, test it!</p>



<pre class="wp-block-code"><code>node server/server.js</code></pre>



<p class="wp-block-paragraph">If it outputs something like this, then the setup is good.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" src="https://serverstadium.com/wp-content/uploads/2021/12/image-15.png" alt="" class="wp-image-1758"/><figcaption class="wp-element-caption">Running Uptime Kuma</figcaption></figure>
</div>


<p class="wp-block-paragraph">Exit it by pressing CTRL+C. Next, we will run it with <code>pm2</code> so it would run in the background.</p>



<h4 class="wp-block-heading has-vivid-cyan-blue-color has-text-color">Step 3: Setup pm2</h4>



<p class="wp-block-paragraph">Install the PM2 module via npm</p>



<pre class="wp-block-code"><code>sudo npm install -g pm2</code></pre>



<p class="wp-block-paragraph">Then, run the following command. Make sure you run it in the uptime-kuma directory:</p>



<pre class="wp-block-code"><code>pm2 start server/server.js --name uptime-kuma</code></pre>



<p class="wp-block-paragraph">Check if it&#8217;s running well in the background by <code>pm2 status</code> command:</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="1014" height="100" src="https://serverstadium.com/wp-content/uploads/2021/12/image-16.png" alt="" class="wp-image-1760" style="width:761px;height:75px" srcset="https://serverstadium.com/wp-content/uploads/2021/12/image-16.png 1014w, https://serverstadium.com/wp-content/uploads/2021/12/image-16-300x30.png 300w, https://serverstadium.com/wp-content/uploads/2021/12/image-16-768x76.png 768w" sizes="(max-width: 1014px) 100vw, 1014px" /><figcaption class="wp-element-caption">Running Uptime Kuma using PM2</figcaption></figure>
</div>


<h2 class="wp-block-heading has-vivid-cyan-blue-color has-text-color" id="First-time-setup">First time setup</h2>



<p class="wp-block-paragraph">Yay, now it&#8217;s ready! Access your Uptime Kuma via http://YOUR-IP:3001</p>



<blockquote class="wp-block-quote is-style-default is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">The URL looks ugly, right? If you want to get rid of it and use SSL to make it more secure, use a reverse proxy. You can read <a href="https://serverstadium.com/knowledge-base/reverse-proxy-management-using-nginx-proxy-manager/">this article</a> on how to use Nginx Proxy Manager to manage this kind of hassle easily.</p>
</blockquote>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img decoding="async" src="https://serverstadium.com/wp-content/uploads/2021/12/image-17.png" alt="" class="wp-image-1761" style="width:676px;height:510px"/><figcaption class="wp-element-caption">First-time accessing Uptime Kuma</figcaption></figure>
</div>


<p class="wp-block-paragraph">Create your admin user with a strong and complicated password. Then you&#8217;ll be brought to this page:</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="1072" height="652" src="https://serverstadium.com/wp-content/uploads/2021/12/image-18.png" alt="" class="wp-image-1763" style="width:536px;height:326px" srcset="https://serverstadium.com/wp-content/uploads/2021/12/image-18.png 1072w, https://serverstadium.com/wp-content/uploads/2021/12/image-18-300x182.png 300w, https://serverstadium.com/wp-content/uploads/2021/12/image-18-1024x623.png 1024w, https://serverstadium.com/wp-content/uploads/2021/12/image-18-768x467.png 768w" sizes="(max-width: 1072px) 100vw, 1072px" /><figcaption class="wp-element-caption">Dashboard</figcaption></figure>
</div>


<p class="wp-block-paragraph">Proceed to the next section!</p>



<h2 class="wp-block-heading has-vivid-cyan-blue-color has-text-color">Adding monitor</h2>



<p class="wp-block-paragraph">Uptime Kuma supports various types of monitoring. Here, I will cover most of them.</p>



<h3 class="wp-block-heading has-vivid-cyan-blue-color has-text-color">Basic HTTP(s)</h3>



<p class="wp-block-paragraph">Basic HTTP/HTTPS monitoring, as the title describes it, monitors basic HTTP/HTTPS connection. Uptime Kuma simply tries to reach the designated website, and it will report if it&#8217;s reachable and the latency.</p>



<p class="wp-block-paragraph"><strong>Step 1.</strong> On the dashboard, click Add New Monitor</p>



<p class="wp-block-paragraph"><strong>Step 2. </strong>Select HTTP(s) for the monitor type.</p>



<p class="wp-block-paragraph"><strong>Step 3.</strong> Give it a friendly name, e.g. My Blog Website</p>



<p class="wp-block-paragraph"><strong>Step 4.</strong> Specify the URL</p>



<p class="wp-block-paragraph"><strong>Step 5.</strong> Set the checking interval.</p>



<p class="wp-block-paragraph"><strong>Step 6.</strong> Set the number of retries before Uptime Kuma sends a notification/alert.</p>



<p class="wp-block-paragraph"><strong>Step 7.</strong> Set the retry check interval. When a monitor is reported down, this interval will override the previous checking interval.</p>



<p class="wp-block-paragraph"><strong>Last step.</strong> Save!</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="606" height="632" src="https://serverstadium.com/wp-content/uploads/2022/01/image-24.png" alt="" class="wp-image-1831" style="width:455px;height:474px" srcset="https://serverstadium.com/wp-content/uploads/2022/01/image-24.png 606w, https://serverstadium.com/wp-content/uploads/2022/01/image-24-288x300.png 288w" sizes="(max-width: 606px) 100vw, 606px" /><figcaption class="wp-element-caption">Basic HTTP(s) monitor</figcaption></figure>
</div>


<p class="wp-block-paragraph">In the <strong>Advanced </strong>section, an option allows you to flip the status. So, when the website is reachable, then it&#8217;s considered DOWN and will be alerted. Also, you can set the maximum redirects. Lastly, specify the status code it should return and consider it UP.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img decoding="async" src="https://serverstadium.com/wp-content/uploads/2022/01/image-25.png" alt="" class="wp-image-1832" style="width:462px;height:237px"/><figcaption class="wp-element-caption">Monitor status</figcaption></figure>
</div>


<h3 class="wp-block-heading has-vivid-cyan-blue-color has-text-color">HTTP(s) keyword</h3>



<p class="wp-block-paragraph">Keyword monitoring will monitor a web page and find a specific keyword, not the HTTP service itself. When the keyword is not present, then the website is considered DOWN. This will allow you to quickly notice if your website is being defaced, hacked, or if something unexpected happens to the page.</p>



<p class="wp-block-paragraph">The steps are similar to the previous one, but you&#8217;ll need to specify which keyword should be present on the webpage/site.</p>



<p class="wp-block-paragraph">For example, on the ServerStadium KB page, the footer has a text which says &#8220;Wow Technologies, Inc. Company&#8221; and we want to monitor that.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img decoding="async" src="https://serverstadium.com/wp-content/uploads/2022/04/image-9.png" alt="" class="wp-image-1955" style="width:603px;height:363px"/><figcaption class="wp-element-caption">The Keyword!</figcaption></figure>
</div>


<p class="wp-block-paragraph">The configurations are as follows:</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="857" height="665" src="https://serverstadium.com/wp-content/uploads/2022/04/image-11.png" alt="" class="wp-image-1958" style="width:643px;height:499px" srcset="https://serverstadium.com/wp-content/uploads/2022/04/image-11.png 857w, https://serverstadium.com/wp-content/uploads/2022/04/image-11-300x233.png 300w, https://serverstadium.com/wp-content/uploads/2022/04/image-11-768x596.png 768w" sizes="(max-width: 857px) 100vw, 857px" /><figcaption class="wp-element-caption">Setting HTTP(s) Keyword Monitoring</figcaption></figure>
</div>


<p class="wp-block-paragraph">Then if you click Save, a green notification will pop up and says that the keyword is found! And the monitor states UP.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="857" height="665" src="https://serverstadium.com/wp-content/uploads/2022/04/image-10.png" alt="" class="wp-image-1956" srcset="https://serverstadium.com/wp-content/uploads/2022/04/image-10.png 857w, https://serverstadium.com/wp-content/uploads/2022/04/image-10-300x233.png 300w, https://serverstadium.com/wp-content/uploads/2022/04/image-10-768x596.png 768w" sizes="(max-width: 857px) 100vw, 857px" /><figcaption class="wp-element-caption">The Keyword is found!</figcaption></figure>
</div>


<h3 class="wp-block-heading has-vivid-cyan-blue-color has-text-color">TCP port</h3>



<p class="wp-block-paragraph">This will monitor a specific port from a given server. Good use of this will be to monitor if certain services are down. For example, you will know that your SMTP service is down when the designated port is no longer open to the public, or any management ports or anything, you name it.</p>



<p class="wp-block-paragraph">Follow the steps from the Basic HTTP monitoring part until step 3. Then fill in the Hostname field with the desired server and the port with the TCP port to be monitored.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img decoding="async" src="https://serverstadium.com/wp-content/uploads/2022/04/2022-04-04_22-19.jpg" alt="" class="wp-image-1998" style="width:311px;height:455px"/><figcaption class="wp-element-caption">TCP port monitoring</figcaption></figure>
</div>


<h3 class="wp-block-heading has-vivid-cyan-blue-color has-text-color">Ping</h3>



<p class="wp-block-paragraph">Self-explanatory, it will monitor the host by sending it ping probes. The simplest monitoring types. You&#8217;ll only need to fill in the server host/IP.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="1290" height="595" src="https://serverstadium.com/wp-content/uploads/2022/04/image-12.png" alt="" class="wp-image-1959" style="width:317px;height:401px" srcset="https://serverstadium.com/wp-content/uploads/2022/04/image-12.png 1290w, https://serverstadium.com/wp-content/uploads/2022/04/image-12-300x138.png 300w, https://serverstadium.com/wp-content/uploads/2022/04/image-12-1024x472.png 1024w, https://serverstadium.com/wp-content/uploads/2022/04/image-12-768x354.png 768w" sizes="(max-width: 1290px) 100vw, 1290px" /><figcaption class="wp-element-caption">Ping monitoring</figcaption></figure>
</div>


<h3 class="wp-block-heading has-vivid-cyan-blue-color has-text-color">DNS record</h3>



<p class="wp-block-paragraph">DNS monitoring allows you to monitor a given DNS record. Whether it&#8217;s A, MX, CNAME, TXT, or any record type, you can quickly take action if your DNS records are no longer propagated, somehow.</p>



<p class="wp-block-paragraph"><strong>Step 1. </strong>Set the monitoring type to DNS</p>



<p class="wp-block-paragraph"><strong>Step 2.</strong> Always specify a friendly name.</p>



<p class="wp-block-paragraph"><strong>Step 3.</strong> Specify the hostname. E.g. google.com</p>



<p class="wp-block-paragraph"><strong>Step 4.</strong> Specify the resolver address. You can choose any DNS server, e.g. Cloudflare&#8217;s 1.1.1.1 or Google&#8217;s 8.8.8.8</p>



<p class="wp-block-paragraph"><strong>Step 5.</strong> Specify which DNS record you want to monitor.</p>



<p class="wp-block-paragraph">And the rest would be the same as the other monitoring types.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img decoding="async" src="https://serverstadium.com/wp-content/uploads/2022/04/image-12.png" alt="" class="wp-image-1962" style="width:317px;height:401px"/><figcaption class="wp-element-caption">DNS record monitoring</figcaption></figure>
</div>


<h3 class="wp-block-heading has-vivid-cyan-blue-color has-text-color">Push monitoring</h3>



<p class="wp-block-paragraph">You can monitor any servers that aren&#8217;t reachable from the internet but can reach the internet. Servers behind NAT, or having outgoing internet access only using a proxy for instance.</p>



<p class="wp-block-paragraph">Simply put the Push URL in a cron job on a minute basis, and you&#8217;re all set.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="860" height="660" src="https://serverstadium.com/wp-content/uploads/2022/04/image-14.png" alt="" class="wp-image-1965" style="width:317px;height:428px" srcset="https://serverstadium.com/wp-content/uploads/2022/04/image-14.png 860w, https://serverstadium.com/wp-content/uploads/2022/04/image-14-300x230.png 300w, https://serverstadium.com/wp-content/uploads/2022/04/image-14-768x589.png 768w" sizes="(max-width: 860px) 100vw, 860px" /><figcaption class="wp-element-caption">Push monitoring</figcaption></figure>
</div>


<p class="wp-block-paragraph">Cronjob example:</p>



<pre class="wp-block-code"><code>* * * * * /usr/bin/curl -s 'http://HOSTNAME:3001/api/push/RGjeIGaV9p?msg=OK&amp;ping='</code></pre>



<h2 class="wp-block-heading has-vivid-cyan-blue-color has-text-color">Setting up notifications</h2>



<p class="wp-block-paragraph">Uptime Kuma supports a variety of notification types. But here, I will explain only email and telegram notifications.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="411" height="196" src="https://serverstadium.com/wp-content/uploads/2022/04/2022-04-04_22-08.jpg" alt="" class="wp-image-1992" srcset="https://serverstadium.com/wp-content/uploads/2022/04/2022-04-04_22-08.jpg 411w, https://serverstadium.com/wp-content/uploads/2022/04/2022-04-04_22-08-300x143.jpg 300w" sizes="(max-width: 411px) 100vw, 411px" /><figcaption class="wp-element-caption">Create a new notification</figcaption></figure>
</div>


<h3 class="wp-block-heading has-vivid-cyan-blue-color has-text-color">Email</h3>



<p class="wp-block-paragraph">Email notification setup is pretty straightforward. You&#8217;ll only need to set up SMTP credentials, like when connecting with a mail client.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="519" height="672" src="https://serverstadium.com/wp-content/uploads/2022/04/2022-04-04_21-04.jpg" alt="" class="wp-image-1974" style="width:389px;height:504px" srcset="https://serverstadium.com/wp-content/uploads/2022/04/2022-04-04_21-04.jpg 519w, https://serverstadium.com/wp-content/uploads/2022/04/2022-04-04_21-04-232x300.jpg 232w" sizes="(max-width: 519px) 100vw, 519px" /><figcaption class="wp-element-caption">SMTP settings</figcaption></figure>
</div>


<p class="wp-block-paragraph">After filling in the required information, press the test button to check if the credentials are correct:</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img decoding="async" src="https://serverstadium.com/wp-content/uploads/2022/04/2022-04-04_21-04_1.jpg" alt="" class="wp-image-1975" style="width:383px;height:512px"/><figcaption class="wp-element-caption">Email connection test</figcaption></figure>
</div>


<p class="wp-block-paragraph">It will show a green notification box in the corner if Uptime Kuma can connect</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="342" height="83" src="https://serverstadium.com/wp-content/uploads/2022/04/2022-04-04_21-04_2.jpg" alt="" class="wp-image-1976" srcset="https://serverstadium.com/wp-content/uploads/2022/04/2022-04-04_21-04_2.jpg 342w, https://serverstadium.com/wp-content/uploads/2022/04/2022-04-04_21-04_2-300x73.jpg 300w" sizes="(max-width: 342px) 100vw, 342px" /><figcaption class="wp-element-caption">Test email success</figcaption></figure>
</div>


<p class="wp-block-paragraph">Otherwise, it will throw an error and explain why it fails to connect. Next, check your mailbox for the test email.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="559" height="144" src="https://serverstadium.com/wp-content/uploads/2022/04/2022-04-04_21-09.jpg" alt="" class="wp-image-1977" srcset="https://serverstadium.com/wp-content/uploads/2022/04/2022-04-04_21-09.jpg 559w, https://serverstadium.com/wp-content/uploads/2022/04/2022-04-04_21-09-300x77.jpg 300w" sizes="(max-width: 559px) 100vw, 559px" /><figcaption class="wp-element-caption">Test email is received</figcaption></figure>
</div>


<p class="wp-block-paragraph">Then, try to make a fake downtime by setting an invalid hostname/port (or any parameter) so it will send an alert.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="860" height="660" src="https://serverstadium.com/wp-content/uploads/2022/04/2022-04-04_21-25.jpg" alt="" class="wp-image-1979" style="width:645px;height:495px" srcset="https://serverstadium.com/wp-content/uploads/2022/04/2022-04-04_21-25.jpg 860w, https://serverstadium.com/wp-content/uploads/2022/04/2022-04-04_21-25-300x230.jpg 300w, https://serverstadium.com/wp-content/uploads/2022/04/2022-04-04_21-25-768x589.jpg 768w" sizes="(max-width: 860px) 100vw, 860px" /><figcaption class="wp-element-caption">Faking a downtime</figcaption></figure>
</div>


<p class="wp-block-paragraph">Check your mailbox; you should receive an alert for it!</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="502" height="361" src="https://serverstadium.com/wp-content/uploads/2022/04/image-15.png" alt="" class="wp-image-1980" srcset="https://serverstadium.com/wp-content/uploads/2022/04/image-15.png 502w, https://serverstadium.com/wp-content/uploads/2022/04/image-15-300x216.png 300w" sizes="(max-width: 502px) 100vw, 502px" /><figcaption class="wp-element-caption">Down alert sent</figcaption></figure>
</div>


<p class="wp-block-paragraph">Tada!</p>



<h3 class="wp-block-heading has-vivid-cyan-blue-color has-text-color">Telegram</h3>



<p class="wp-block-paragraph">Telegram notification setup will require you to prepare the following elements:</p>



<ol class="wp-block-list">
<li>Creating a Telegram BOT</li>



<li>Direct Chat/Group/Channel Chat ID</li>
</ol>



<h4 class="wp-block-heading has-vivid-cyan-blue-color has-text-color">Creating a Telegram BOT</h4>



<p class="wp-block-paragraph">Open your Telegram app (Mobile or PC), and search for @botfather. Be careful of any fake botfather accounts; make sure it&#8217;s exactly @botfather and has a verified icon on the name.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="281" height="130" src="https://serverstadium.com/wp-content/uploads/2022/04/2022-04-04_21-37.jpg" alt="" class="wp-image-1983"/><figcaption class="wp-element-caption">The real botfather bot account.</figcaption></figure>
</div>


<p class="wp-block-paragraph">Then add the bot and start creating a bot.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="443" height="256" src="https://serverstadium.com/wp-content/uploads/2022/04/2022-04-04_21-42.jpg" alt="" class="wp-image-1985" srcset="https://serverstadium.com/wp-content/uploads/2022/04/2022-04-04_21-42.jpg 443w, https://serverstadium.com/wp-content/uploads/2022/04/2022-04-04_21-42-300x173.jpg 300w" sizes="(max-width: 443px) 100vw, 443px" /><figcaption class="wp-element-caption">Creating a telegram bot</figcaption></figure>
</div>


<p class="wp-block-paragraph">In the end, the BotFather will give you the API token you will use in Uptime Kuma. Keep it safe, and don&#8217;t share it with anybody.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="450" height="277" src="https://serverstadium.com/wp-content/uploads/2022/04/2022-04-04_21-44.jpg" alt="" class="wp-image-1987" srcset="https://serverstadium.com/wp-content/uploads/2022/04/2022-04-04_21-44.jpg 450w, https://serverstadium.com/wp-content/uploads/2022/04/2022-04-04_21-44-300x185.jpg 300w" sizes="(max-width: 450px) 100vw, 450px" /><figcaption class="wp-element-caption">BOT API token</figcaption></figure>
</div>


<p class="wp-block-paragraph">The first part is done; let&#8217;s go to the second one.</p>



<h4 class="wp-block-heading has-vivid-cyan-blue-color has-text-color">Obtaining the Chat ID</h4>



<p class="wp-block-paragraph">A chat ID is the ID of a direct chat or channel or group where you want Uptime Kuma to send the notification. To get this ID, you&#8217;ll need to determine whether you want a group, a private channel, or just a plain chat (the bot will send the notification directly to your telegram account, not via group/channel).</p>



<p class="wp-block-paragraph">If you create (or existing) a group or channel, you must invite the bot to the group/channel and assign writing permission to it. So, the bot will be able to post the notifications.</p>



<p class="wp-block-paragraph">Then, add another bot called @JsonDumpBot that allows you to retrieve metadata of a message, including the chat ID, by simply forwarding the message to this bot.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="371" height="313" src="https://serverstadium.com/wp-content/uploads/2022/04/2022-04-04_21-57.jpg" alt="" class="wp-image-1989" srcset="https://serverstadium.com/wp-content/uploads/2022/04/2022-04-04_21-57.jpg 371w, https://serverstadium.com/wp-content/uploads/2022/04/2022-04-04_21-57-300x253.jpg 300w" sizes="(max-width: 371px) 100vw, 371px" /><figcaption class="wp-element-caption">Telegram JsonDumpBot</figcaption></figure>
</div>


<p class="wp-block-paragraph">First, post a dummy text in the group/channel or your own bot, then forward the message to the JsonDumpBot. You&#8217;ll be replied with the metadata in JSON format.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="339" height="625" src="https://serverstadium.com/wp-content/uploads/2022/04/2022-04-04_22-04.jpg" alt="" class="wp-image-1991" srcset="https://serverstadium.com/wp-content/uploads/2022/04/2022-04-04_22-04.jpg 339w, https://serverstadium.com/wp-content/uploads/2022/04/2022-04-04_22-04-163x300.jpg 163w" sizes="(max-width: 339px) 100vw, 339px" /><figcaption class="wp-element-caption">Getting the Chat ID</figcaption></figure>
</div>


<p class="wp-block-paragraph">Find the part where it says &#8220;chat&#8221; and &#8220;id&#8221;. Then, you get the chat ID.</p>



<h4 class="wp-block-heading has-vivid-cyan-blue-color has-text-color">Notification setup</h4>



<p class="wp-block-paragraph">Back to Uptime Kuma, create a new notification setup and choose Telegram as the type. Fill in the required information.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="498" height="621" src="https://serverstadium.com/wp-content/uploads/2022/04/2022-04-04_22-10.jpg" alt="" class="wp-image-1993" style="width:374px;height:466px" srcset="https://serverstadium.com/wp-content/uploads/2022/04/2022-04-04_22-10.jpg 498w, https://serverstadium.com/wp-content/uploads/2022/04/2022-04-04_22-10-241x300.jpg 241w" sizes="(max-width: 498px) 100vw, 498px" /><figcaption class="wp-element-caption">Telegram notification settings</figcaption></figure>
</div>


<p class="wp-block-paragraph">Test the notification as always. If you set it up correctly, it will send you the test notification.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" width="265" height="51" src="https://serverstadium.com/wp-content/uploads/2022/04/2022-04-04_22-12.jpg" alt="" class="wp-image-1994" style="width:265px;height:51px"/><figcaption class="wp-element-caption">Test notification sent</figcaption></figure>
</div>


<p class="wp-block-paragraph">Done! The telegram notification is now ready! Yay! Now, do the real test just like the email one.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="493" height="108" src="https://serverstadium.com/wp-content/uploads/2022/04/2022-04-04_22-15.jpg" alt="" class="wp-image-1997" srcset="https://serverstadium.com/wp-content/uploads/2022/04/2022-04-04_22-15.jpg 493w, https://serverstadium.com/wp-content/uploads/2022/04/2022-04-04_22-15-300x66.jpg 300w" sizes="(max-width: 493px) 100vw, 493px" /><figcaption class="wp-element-caption">Down-Up alert sent</figcaption></figure>
</div>


<p class="wp-block-paragraph">It&#8217;s awesome! Isn&#8217;t it?</p>



<h2 class="wp-block-heading">Conclusion</h2>



<p class="wp-block-paragraph">To sum up, deploying Uptime Kuma is quick and easy. Also, adding monitors and configuring notifications are simple, thanks to its user-friendly interface.</p>



<p class="wp-block-paragraph">Find more tech insight and tutorial articles in our <strong><a href="https://serverstadium.com/knowledge-base/" target="_blank" rel="noreferrer noopener">Knowledge Base</a></strong>. Have you not tried ServerStadium&#8217;s panel yet? <strong><a href="https://cp.serverstadium.com/regist-user" target="_blank" rel="noreferrer noopener">sign up</a></strong> here, and experience ServerStadium&#8217;s simplicity.</p>
<p>The post <a href="https://serverstadium.com/knowledge-base/monitor-your-services-uptime-using-uptime-kuma/">Monitor Your Services Uptime Using Uptime Kuma</a> appeared first on <a href="https://serverstadium.com">ServerStadium</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
