Monitor your website with Uptime Kuma

Tiempo de lectura: 2 minutos

Reading time: 2 minutes

Today I bring you a service integrated in a Docker called Uptime Kuma.

Uptime Kuma is a powerful web monitor that allows us to know the status of our website. It allows us to configure alerts for when our website goes down or even when the SSL certificate is about to expire.

Running it is very simple, first we need to have Docker installed on our machine (Install Docker on Ubuntu and deploy Apache web server with PHP using Docker Compose)

Once installed, to download and run the image on port 3001, use the following command:

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

If you want to use Docker Compose:

version: '3.3'
services:
  uptime_kuma:
    restart: always
    ports:
      - '3001:3001'
    volumes:
      - './config/uptime_kuma:/app/data'
    container_name: uptime_kuma
    image: 'louislam/uptime-kuma:latest'
    networks:
      - docker-network
networks:
  docker-network:
    driver: bridge
    external: true

This will deploy the service, now you just need to open port 3001 (How to open a port or ports in Ubuntu (Linux) by default using ip-tables) on your machine and you can access the service by entering localhost:3001 or ip:3001.

Once installed, let’s set a username and password that will be requested each time we access the service.

To configure monitoring for a website, click on Add new monitor:

Now fill in the requested data:

Enter the name of the service, add the URL, and set the scan interval (default is 60 seconds).

You can choose whether to receive alerts for SSL certificate expiration:

It also allows generating alerts when the website goes down. To do this, click on Configure notification.

You can choose various services for alerts, such as Discord.

Once configured, we can view the latency statistics of the site and the times it has been disconnected.

Leave a Comment