Uptime Kuma is a powerful, self-hosted monitoring tool that allows you to track the uptime of your websites, services, and applications. Here's a quick guide on how to set it up on a Linux server using Docker.
Prerequisites:
Ensure that Docker is installed on your system. You can install it by following this guide.
Step-by-Step Installation:
Create a Directory for Uptime Kuma First, we create a directory to store Uptime Kuma's data:
mkdir -p docker/uptime-kuma && cd docker/uptime-kuma
Prepare Docker Run Command Next, we create a file to store the Docker run command:
nano docker-run.txt
Add the Docker Run Command Copy and paste the following Docker run command into the docker-run.txt file:
sudo docker run -d --restart=always -p 3001:3001 -v /home/mahesh/docker/uptime-kuma/data:/app/data --name uptime-kuma louislam/uptime-kuma
Set Up Docker Volume for Uptime Kuma If you prefer using Docker volumes to manage Uptime Kuma's data, you can create a volume and run the following commands:
sudo docker volume create uptime-kuma
sudo docker run -d --restart=always -p 3001:3001 -v uptime-kuma:/app/data -v /var/run/docker.sock:/var/run/docker.sock --name uptime-kuma louislam/uptime-kuma
Access Uptime Kuma Once the Docker container is up and running, Uptime Kuma should be accessible at: