Mad World #Save_GAZA: Free Palestine  

Search

How to Install Uptime Kuma with Docker (2026 Step-by-Step Guide)

How to Install Uptime Kuma with Docker (2026 Step-by-Step Guide)

Short answer: on a Linux machine with Docker, run docker run -d --restart=always -p 3001:3001 -v uptime-kuma:/app/data --name uptime-kuma louislam/uptime-kuma:2. Open http://your-server-ip:3001, choose SQLite as the database, and create your admin account. Then click Add New Monitor, type the address of your site, and add a notification so that Uptime Kuma tells you when the site goes down.

We tested every step on 13 November 2026 with Uptime Kuma 2.5.11 (the 2 image tag) on Docker Engine 29.9.3, in disposable labs. We stopped a test web server on purpose, and the Down alert arrived 25 seconds later. All the screenshots and outputs below come from these tests. Where you see localhost, use the IP address or the name of your own server.

What is Uptime Kuma?

Uptime Kuma is a free, open-source monitoring tool that you host yourself. It checks your websites and services every minute (or at the interval you choose), draws their response time, and alerts you when one stops answering. It can check websites (HTTP and HTTPS, with or without a keyword), TCP ports, ping, DNS records and Docker containers. It sends alerts to Telegram, Discord, Slack, email and more than 90 other services, and it makes public status pages.

The official project is on GitHub (louislam/uptime-kuma). Its README warns that uptimekuma.co, a site that ranks high in Google, is not the official website.

What you need

  • A Linux machine with Docker Engine installed and running. No Docker yet? Follow our guide to install Docker and Docker Compose on Ubuntu. New to containers? Read Docker for beginners first.
  • Port 3001 free on that machine.
  • A Docker volume or a folder on a local disk for the data. The project says that network file systems such as NFS are not supported.
  • If you can, a different machine from the sites that you want to watch. When Uptime Kuma runs on the same server as your website and that server stops, nothing is left to send you the alert.

If your user is not in the docker group, put sudo in front of every docker command below.

Step 1: Start Uptime Kuma with Docker

This is the command from the official README:

Terminal
docker run -d --restart=always -p 3001:3001 -v uptime-kuma:/app/data --name uptime-kuma louislam/uptime-kuma:2
  • -p 3001:3001: the web interface on port 3001. To reach it only from the machine itself, use -p 127.0.0.1:3001:3001.
  • -v uptime-kuma:/app/data: a Docker volume named uptime-kuma for the database, the settings and the uploads. Updates and backups depend on it.
  • --restart=always: Docker starts Uptime Kuma again after a reboot or a crash.
  • louislam/uptime-kuma:2: the latest version 2 image. On the day of our test, the tag pointed to version 2.5.11, published on 12 November 2026.

Our output, with the long IDs shortened:

Terminal
$ docker run -d --restart=always -p 3001:3001 -v uptime-kuma:/app/data --name uptime-kuma louislam/uptime-kuma:2
Unable to find image 'louislam/uptime-kuma:2' locally
2: Pulling from louislam/uptime-kuma
Digest: sha256:7554dba313c8…
Status: Downloaded newer image for louislam/uptime-kuma:2
5609973d364b…

Check that the container runs:

Terminal
docker ps
Code
CONTAINER ID   IMAGE                    COMMAND                  CREATED          STATUS                    PORTS                                         NAMES
5609973d364b   louislam/uptime-kuma:2   "/usr/bin/dumb-init …"   21 seconds ago   Up 19 seconds (healthy)   0.0.0.0:3001->3001/tcp, [::]:3001->3001/tcp   uptime-kuma

After about 20 seconds, the status must say (healthy).

Step 2: Choose the database

Open http://your-server-ip:3001. Since version 2, the first page asks which database to use:

  • Embedded MariaDB: "This Docker image has embedded and configured MariaDB for you automatically." Nothing to set.
  • MariaDB/MySQL: an external database server that you already run. You type its hostname, port, user, password and database name.
  • SQLite: "A simple database file, recommended for small-scale deployments." Version 1 always used SQLite.

For a home server or a small business, choose SQLite (1) and click Next (2). Uptime Kuma prepares the database in a few seconds.

Uptime Kuma 2 first-run page asking which database to use: Embedded MariaDB, MariaDB/MySQL or SQLite
SQLite (1) is the simple choice for small setups. Then Next (2).

Step 3: Create the admin account

Uptime Kuma has no default password. Type a username and a strong password twice, then click Create:

Uptime Kuma Create your admin account form with Username, Password, Repeat Password and Create
Username (1), password (2), the same password again (3), then Create (4).

You land on an empty dashboard. Everything starts with the Add New Monitor button:

Empty Uptime Kuma dashboard with the Add New Monitor button
A new dashboard: click Add New Monitor (1).

Step 4: Add your first monitor

Fill in the form. For a website:

  1. Monitor Type: HTTP(s).
  2. Friendly Name: the name you will see in alerts, for example Example website.
  3. URL: the full address, with https://.
  4. Heartbeat Interval: how often Uptime Kuma checks the site. 60 seconds is the default.
  5. Scroll down and click Save.
Uptime Kuma Add New Monitor form with Monitor Type HTTP(s), Friendly Name, URL, Heartbeat Interval and Save
Monitor type (1), name (2), URL (3), check interval (4), then Save (5). Retries is 0 by default.

Look at Retries before you save. Since version 2, it is 0 for new monitors: one failed check marks the site Down and sends the alert. If your site sometimes answers slowly, set it to 1 or 2 to avoid alerts for a single slow answer. Request Timeout follows the interval: 48 seconds for a 60-second interval in our form.

After you save, the monitor page opens. The first check ran at once: Up, the response time, the uptime for 24 hours, 30 days and one year, and, for an HTTPS site, the number of days before its certificate expires.

Uptime Kuma monitor page for Example website showing the status Up
The new monitor in the list (1), its page (2), and its state: Up (3).

The same form watches other things: choose TCP Port for a database or an SSH port, Ping for a device, HTTP(s) - Keyword to check that a page shows a word, or DNS for a DNS record.

Step 5: Get an alert when a site goes down

Open the menu at the top right, then Settings → Notifications → Set Up Notification. The Notification Type list has more than 90 services: Telegram is selected first, and Discord, Slack and Email (SMTP) are in the list. Each type asks for its own details. For Telegram, you need a bot token and a chat ID: see how a Telegram bot works.

In our lab, we used the Webhook type with a small test server that records what it receives. That way, we could see the exact alerts:

Uptime Kuma Set Up Notification window with the Webhook type, Post URL, Request Body, Default enabled, Test button and Sent Successfully message
Type (1), name (2), address (3), body format (4), Default enabled (5), then Test (6): "Sent Successfully." (7).
  1. Notification Type: your service.
  2. Friendly Name: any name.
  3. The details of your service. For a webhook: the Post URL...
  4. ...and the Request Body. This box is required: we chose Preset - application/json.
  5. Turn on Default enabled, so every new monitor uses this notification, and Apply on all existing monitors for the monitors you already have.
  6. Click Test. You must see "Sent Successfully." and get the test message. Then click Save.

The test message that our webhook received:

JSON
{"heartbeat":null,"monitor":null,"msg":"Lab webhook Testing"}

From now on, the form of a new monitor shows the notification already turned on, with a Default label:

Notifications section of the Uptime Kuma monitor form with the Lab webhook notification turned on by default
A new monitor gets the default notification (1).

Step 6: Test a real outage

A test message proves that the connection works. To see a real alert, we added a second monitor, Test web server, on a small web server in our lab, with a 20-second interval and 0 retries. Then we stopped that web server. What happened (times in UTC):

  • 12:58:30: we stopped the web server.
  • 12:58:40: the next check started. It got no answer and gave up after 16 seconds, the request timeout for a 20-second interval.
  • 12:58:55: our webhook received the alert, 25 seconds after the stop.
  • 12:59:12: we started the web server again.
  • 12:59:20: the next check passed, and the Up alert arrived at once.

The two messages that our webhook received:

Code
[Test web server] [🔴 Down] timeout of 16000ms exceeded
[Test web server] [✅ Up] 200 - OK

In the dashboard, the monitor turned red and a notice appeared at the bottom of the screen:

Uptime Kuma monitor page for Test web server showing Down, with a red DOWN notice
The monitor (1) is Down (2). The red bars in the history are the failed checks.

For real sites, keep a 60-second interval and set Retries to 1 or 2. Alerts then come a minute or two later, but a single slow answer does not wake you up.

Step 7: Create a status page

A status page shows your visitors or your team which services work. Click Status Pages at the top, then New Status Page. Type a Name and a Slug, the end of the page address (lowercase letters, digits and dashes), and click Next:

Uptime Kuma Add New Status Page form with the name Lab status and the slug lab
Name (1), slug (2), then Next (3). The page will be at /status/lab.

In the editor, click Add a monitor, choose your monitors one by one, then click Save. Our page at http://localhost:3001/status/lab:

Uptime Kuma public status page Lab status showing All Systems Operational and two services
The overall state (1) and each service with its uptime (2, 3). The page refreshes every 5 minutes.

To share a status page outside your home network, put Uptime Kuma behind a reverse proxy or a Cloudflare Tunnel: see how to create a Cloudflare Tunnel on Synology. The same address also opens the Uptime Kuma login page, so use a strong password.

Install Uptime Kuma with Docker Compose

The project also gives a Compose file. Create a folder, download the file into it, and start it:

Terminal
mkdir uptime-kuma && cd uptime-kuma
curl -o compose.yaml https://raw.githubusercontent.com/louislam/uptime-kuma/master/compose.yaml
docker compose up -d

The file contains:

YAML
services:
  uptime-kuma:
    image: louislam/uptime-kuma:2
    restart: unless-stopped
    volumes:
      - ./data:/app/data
    ports:
      # <Host Port>:<Container Port>
      - "3001:3001"

Our test on an empty Docker engine:

Terminal
$ docker compose up -d
 Network uptime-kuma_default Creating 
 Network uptime-kuma_default Created 
 Container uptime-kuma-uptime-kuma-1 Creating 
 Container uptime-kuma-uptime-kuma-1 Created 
 Container uptime-kuma-uptime-kuma-1 Starting 
 Container uptime-kuma-uptime-kuma-1 Started 
$ docker compose ps
NAME                        IMAGE                    COMMAND                  SERVICE       CREATED          STATUS                    PORTS
uptime-kuma-uptime-kuma-1   louislam/uptime-kuma:2   "/usr/bin/dumb-init …"   uptime-kuma   26 seconds ago   Up 25 seconds (healthy)   0.0.0.0:3001->3001/tcp, [::]:3001->3001/tcp
$ ls data
docker-tls
screenshots
upload

This file keeps the data in a data folder next to compose.yaml, not in a named volume. The first page was the database choice of Step 2. If you prefer to click instead of typing, you can paste a Compose file into Portainer as a stack: our Portainer guide deploys Uptime Kuma that way, and docker compose up explains what the command does.

Install Uptime Kuma on a Synology NAS

A Synology NAS runs Docker through the Container Manager package, so the same commands work. We did not repeat this part on a Synology for this update, so check each screen on your model:

  1. Install Container Manager from Package Center. Before DSM 7.2, the package is called Docker.
  2. Turn on SSH and connect as an administrator: see how to SSH into your Synology.
  3. Run the command of Step 1 with sudo in front, then open http://your-nas-ip:3001.

Keep the data on the NAS itself (a Docker volume, or a folder on the NAS such as /volume1/docker/uptime-kuma), not on a network share mounted from another machine.

How to update Uptime Kuma

The data is in the volume, so you replace the container and keep the volume:

Terminal
docker pull louislam/uptime-kuma:2
docker stop uptime-kuma
docker rm uptime-kuma
docker run -d --restart=always -p 3001:3001 -v uptime-kuma:/app/data --name uptime-kuma louislam/uptime-kuma:2

Our output. Our image was already the newest, so the pull said "up to date":

Terminal
$ docker pull louislam/uptime-kuma:2
2: Pulling from louislam/uptime-kuma
Digest: sha256:7554dba313c8…
Status: Image is up to date for louislam/uptime-kuma:2
docker.io/louislam/uptime-kuma:2
$ docker stop uptime-kuma
uptime-kuma
$ docker rm uptime-kuma
uptime-kuma
$ docker run -d --restart=always -p 3001:3001 -v uptime-kuma:/app/data --name uptime-kuma louislam/uptime-kuma:2
786defd6b68a…

After the update, our two monitors, their history and the notification were still there. With Docker Compose, run docker compose pull, then docker compose up -d, in the folder of compose.yaml.

How to back up and restore Uptime Kuma

Version 2 removed the old backup and restore button. The only supported backup is a copy of the data directory. With the volume of Step 1, stop the container and save the volume to a file in the current folder:

Terminal
docker stop uptime-kuma
docker run --rm -v uptime-kuma:/data -v "$PWD":/backup alpine tar czf /backup/uptime-kuma-data.tgz -C /data .
docker start uptime-kuma

In our test, the archive was 14.4 KB and held kuma.db (the SQLite database) and db-config.json (the database choice of Step 2). To restore it into a new, empty volume:

Terminal
docker rm -f uptime-kuma
docker volume rm uptime-kuma
docker volume create uptime-kuma
docker run --rm -v uptime-kuma:/data -v "$PWD":/backup alpine tar xzf /backup/uptime-kuma-data.tgz -C /data
docker run -d --restart=always -p 3001:3001 -v uptime-kuma:/app/data --name uptime-kuma louislam/uptime-kuma:2

After our restore, Uptime Kuma opened its login page, not the first-run setup: the database and the admin account were back. With the Compose file, stop the stack and copy the data folder instead.

Upgrade from Uptime Kuma 1 to 2

The first version of this guide used the louislam/uptime-kuma:1 image. Version 2 is a major update with breaking changes. We did not run a version 1 migration for this update; these are the steps of the official migration guide:

  1. Stop Uptime Kuma and back up the data directory (the volume, or a folder such as /volume1/docker/uptime-kuma on a Synology).
  2. Start the same command with :2 instead of :1.
  3. Watch the log with docker logs -f uptime-kuma and do not stop the container during the migration. The project's own instance, with 20 monitors and 90 days of data, took about 7 minutes. On slow hardware, it can take hours. If the migration stops halfway, restore the backup and start again.

To read a container log as it grows, see docker logs -f.

Troubleshooting

The page does not open

Check that docker ps shows the container as (healthy) and 0.0.0.0:3001->3001/tcp. Use http://, not https://. If the machine has a firewall, allow the port, for example sudo ufw allow 3001/tcp on Ubuntu.

Too many alerts for short slow moments

Edit the monitor and set Retries to 1 or 2. Version 2 uses 0 for new monitors.

No alert arrives

Open the monitor, click Edit, and check that your notification is turned on in its Notifications section. Then use the Test button of the notification: if the test fails, the problem is in the details of your service (token, chat ID, address).

"The container name "/uptime-kuma" is already in use"

An old container has the same name. Remove it with docker rm -f uptime-kuma, then run the command again. Your data is in the volume, not in the container.

Database errors with data on a network share

The project does not support NFS for the data. Move the data to a local Docker volume or a local folder.

Frequently asked questions

Is Uptime Kuma free?

Yes. Uptime Kuma is free and open source (MIT license), with no paid edition. You only pay for the machine that runs it.

What is the default port of Uptime Kuma?

3001. You can publish another host port, for example -p 8081:3001, and open http://your-server-ip:8081.

What is the default username and password?

There is none. On the first visit, you choose the database, then you create the admin account yourself.

Should I choose SQLite or MariaDB?

The setup page recommends SQLite for small-scale deployments, and it is the simplest to back up: one file. Embedded MariaDB needs no setting either. Choose MariaDB/MySQL only if you already run a database server.

Can Uptime Kuma watch Docker containers?

Yes, with the Docker Container monitor type. Add your Docker host first in Settings → Docker Hosts. For the Docker engine of the same machine, the Uptime Kuma container needs the Docker socket: add -v /var/run/docker.sock:/var/run/docker.sock to the command of Step 1. For alerts about containers on a Synology without Uptime Kuma, see Docker container notifications on Telegram.

Is uptimekuma.co the official website?

No. The project's README says that this site is not theirs. Install from the GitHub project or the louislam/uptime-kuma image on Docker Hub.

Sources

Yassine

Yassine

Yassine founded IGProd to educate the visitors with technological tutorials. These helpful guides are available for all sorts of professionals and novices, whether they work in technology or not!

Surf freely 💗

Leave a comment

Your email address will not be published. Required fields are marked *

Your experience on this site will be improved by allowing cookies Cookie Policy