How to Set Up Uptime Kuma Using Docker Compose for Multi-Host Docker Container Monitoring.

Priyanshu Bhatt
5 min readSep 3, 2024
Louislam/uptime-kuma github page
louislam/uptime-kuma github page

In today’s digital landscape, maintaining the availability and performance of services across multiple hosts is critical. Uptime Kuma, an open-source monitoring tool, offers an elegant solution for tracking the uptime of websites, APIs, servers, and more. This guide will walk you through configuring Uptime Kuma on Amazon Web Services (AWS) using Docker Compose, enabling you to monitor multi-host containers from a centralized dashboard.

We’ll also cover how to set up Uptime Kuma to send real-time alerts to Google Chat, ensuring that your team is immediately notified of any service disruptions or performance issues. By the end of this tutorial, you’ll have a robust monitoring system in place, capable of overseeing a distributed infrastructure and keeping your operations running smoothly.

STEP 1: First, start by creating a Doker compose file for setting up Uptime Kuma.

services:
uptime-kuma:
image: louislam/uptime-kuma
container_name: uptime-kuma
volumes:
- /home/ubuntu/uptime-kuma/data:/app/data
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 3001:3001
restart: unless-stopped
security_opt:
- no-new-privileges:true

You can check the status of the container by running:

--

--

Priyanshu Bhatt

AWS Solutions Architect || Terraform Certified Associate || DevOps Engineer || I Share Crisp Tech Stories