Skip to content

Set Up Uptime Kuma on a Linux Server – Monitor Websites and Services Yourself

Set up Uptime Kuma on your Linux server: in minutes as a One-Click App or manually with Docker Compose. Monitor websites and services, and get notified when they go down.

26 November 20264 min read2 Views0 helpful

Introduction

Uptime Kuma is an open-source monitoring tool that you host yourself. It checks your websites, servers, and services at regular intervals, displays response times and availability, and notifies you as soon as something goes down. In addition to HTTP(s), Uptime Kuma can check TCP ports, ping, DNS, databases, and game servers. It also warns you in advance about expiring TLS certificates and domains. You can create public status pages for your users directly in the web interface.

In this guide, we'll show you two ways to get started: the easy way using the One-Click Apps on your VPS, and manual installation with Docker Compose.

The easy way: Uptime Kuma as a One-Click App

The quickest way to get your own monitoring up and running is through the One-Click Apps on your VPS. ZapX configures the domain and HTTPS for you, so you don't need to use the console.

Requirements

  • A Linux VPS (Debian or Ubuntu) with One-Click Apps set up. See Set up One-Click Apps for instructions.
  • At least 256 MB RAM for Uptime Kuma; 512 MB is recommended. You'll need more if you have a lot of monitors and short check intervals.

Install

  1. Open your VPS in the ZapX dashboard and go to the One-Click Apps tab.
  2. Search the App catalog for Uptime Kuma and click Install app for the entry without an add-on. Entries with MariaDB or MySQL in the name also start a separate database container, which most installations don't need.
  3. Keep Use a custom subdomain or zap.cloud enabled and choose an address. With a domain, Uptime Kuma is available over HTTPS; without one, it's available over HTTP only.
  4. No further details are required. Click Queue installation. The app will be online in one to two minutes.
Warning

Open immediately after installation Uptime Kuma doesn't create an admin account in advance. Whoever visits the address first sets up the database and creates the admin account. So open the app at its address as soon as it's installed and complete the setup.

First launch: database and admin account

The first time you open Uptime Kuma, it asks: “Which database would you like to use?”

  • SQLite: a simple database file. Uptime Kuma itself recommends it for small installations.
  • Embedded MariaDB: a MariaDB instance that runs in the same container. No configuration is needed.
  • MariaDB/MySQL: connects to an external database. You'll need to provide the hostname, port, username, password, and database name.

For most users, SQLite or Embedded MariaDB is sufficient. Then click “Next.” In the next step, create your admin account with a username and password. You'll then go straight to the dashboard.

Add your first monitor and set up notifications

  1. Click “Add New Monitor.”
  2. Leave the monitor type set to HTTP(s), enter a display name and your website URL, for example https://example.com.
  3. The heartbeat interval is set to 60 seconds by default. Click “Save”; the first status will appear after a few seconds.

To make sure Uptime Kuma reaches you when something goes down, set up a notification channel under “Settings” > “Notifications,” such as email via SMTP, Discord, or Telegram. Notifications only work once you've assigned them to a monitor. You can do this when creating or editing the monitor.

Tip

Two-factor authentication Your monitoring interface is publicly accessible. For this reason, enable two-factor authentication for your admin account under “Settings” > “Security.”

App updates and settings

To check whether an update is available for your installation, go to the app settings (gear icon), then App update, and click Check for updates. If a new version is available, install it with Apply update. Your monitors and settings will be preserved because they're stored in a separate volume.

You can change the app's address under App actions. You can also stop, reinstall, or uninstall the app there.

Manual installation

The rest of this guide describes manual installation from the console using Docker Compose, for example, if you want to integrate Uptime Kuma into an existing server environment. The instructions are based on the official Uptime Kuma installation guide.

Requirements

  • A Linux server running Debian or Ubuntu that you can access via SSH.
  • Docker with the Compose plugin. See our guide Set up Docker for instructions on installing Docker.
  • A local directory or Docker volume for the data. Uptime Kuma doesn't support network file systems such as NFS.

Start Uptime Kuma

Create a directory, download the official Compose file, and start the container:

Code
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 Compose file looks like this:

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

Uptime Kuma will then be running on port 3001. Open http://<IP-Adresse deines Servers>:3001 in your browser, choose a database, and create your admin account as described above under First launch: database and admin account. The data is stored in the data subdirectory.

Info

Firewall and HTTPS If a firewall is active on your server, port 3001 (TCP) must be accessible; see Firewall management on Linux. For continuous use, you should run Uptime Kuma with a domain over HTTPS behind a reverse proxy; see Set up a reverse proxy with nginx. You should then bind the port locally only, using "127.0.0.1:3001:3001" instead of "3001:3001".

Update Uptime Kuma

The louislam/uptime-kuma:2 image receives all updates for version 2. Go to the directory and pull the latest version:

Code
cd uptime-kuma
docker compose pull
docker compose up -d

Conclusion and further resources

Congratulations! Uptime Kuma is now running on your server and monitoring your services. Find more information here:

Have questions that aren't answered here? Our support team is happy to help every day! 🙂

Free tools

Related tools for servers and developers

View all

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 people found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP-Hosting support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.