Uptime Kuma gives you a web dashboard for checking websites and services. This guide uses Uptime Kuma 2 with embedded SQLite: no separate database server, database password or SQL user is required. An OwnServa planning estimate for a small monitor set is 1 CPU core and 1 GB RAM.
Before you start
Prepare Docker using the server setup guide. Reserve loopback port 3001 and, if publishing, a domain such as status-admin.example.com. Monitoring your server from that same server will not tell you when the whole server or its network connection goes down. Put important external monitoring on an independent machine.
mkdir -p ~/selfhosted/uptime-kuma
cd ~/selfhosted/uptime-kuma
Configure the database and persistent volume
Save as compose.yaml:
services:
kuma:
image: louislam/uptime-kuma:2
restart: unless-stopped
ports:
- "127.0.0.1:3001:3001"
environment:
UPTIME_KUMA_DB_TYPE: sqlite
volumes:
- monitoring:/app/data
volumes:
monitoring:
The explicit sqlite setting selects the embedded database on first boot. Uptime Kuma creates its files under /app/data, which the named volume preserves. Keep the volume on local storage with normal filesystem locking. Do not put a live SQLite database on an unsupported network share.
This example deliberately does not mount the host Docker socket. Website checks do not need it, and access to that socket grants broad control over the server.
Install and open the setup screen
sudo docker compose config --quiet
sudo docker compose up -d
sudo docker compose ps
sudo docker compose logs --tail=60 kuma
For the first visit, open an SSH tunnel from your computer:
ssh -L 3001:127.0.0.1:3001 your-user@YOUR_SERVER_IP
Open http://localhost:3001. If a database-selection page appears, choose SQLite and finish initialization. With UPTIME_KUMA_DB_TYPE=sqlite it should be preselected/configured. Then create the administrator username and password on the initial setup screen. Do this privately before exposing a public address.
Sign in and add your first monitor
Sign in with the administrator you just created. Choose Add New Monitor, select HTTP(s), enter a friendly name and a full URL such as https://example.com, then save. Wait for several checks and confirm the graph shows successful responses.
Add a notification channel in settings and send its test notification. A green monitor without working alerts is not a completed notification setup. Test a controlled failure on a service you own, then restore it. Set a reasonable interval; a monitor should not overload the service it watches.
For browser access without the SSH tunnel, follow the HTTPS guide and proxy status-admin.example.com to 127.0.0.1:3001. Keep administrator access authenticated. A public status page is a separate, deliberate setting; review which monitor names and URLs you expose.
Back up and update
Stop the container during a brief maintenance window before making a file-level backup of the monitoring volume, or use a database-aware backup process. Include all application data, not just a copied database file taken during active writes. Restore a test copy before depending on it.
The :2 tag follows the version-2 line. Pin a supported release or digest for repeatability. Existing version-1 users should follow the upstream migration guide; do not treat a major-version change as an ordinary fresh install.
Troubleshooting
- An empty setup screen appears after a restart: check that the same Compose project and data volume are being used.
- Notification tests fail: check provider credentials and outbound network access.
- The server is down but shows no local alert: use an independent monitoring host; a dead server cannot send its own notification.
- Database locked errors: check storage suitability and whether multiple instances are writing the same volume.
Official references
Review the project's Compose example, installation wiki and version-1 to version-2 migration guide. The database setup implementation documents the database-selection behavior used here.
Written by OwnServa. Check the official release notes before updating, keep independent backups and test a restore before relying on your installation.