Yes, you can replace a Portainer-managed Watchtower container with Uptime Kuma, but they serve entirely different purposes. Watchtower automatically updates your other containers, while Uptime Kuma monitors your services and alerts you when they go down. This article explains how to migrate from Watchtower to Uptime Kuma, what to consider before doing so, and how to run both if needed.
Formula
The calculator above computes your average pace and speed for a given distance and finish time. The formulas are:
- Pace (min/km) = Finish time (min) ÷ Distance (km)
- Speed (km/h) = Distance (km) ÷ (Finish time (min) ÷ 60)
Where:
- t = finish time in minutes
- d = distance in kilometers
- Pace = minutes per kilometer (lower is faster)
- Speed = kilometers per hour (higher is faster)
Worked Example
Using the default values from the calculator (50 minutes, 10 km):
- Pace = 50 ÷ 10 = 5.00 min/km
- Speed = 10 ÷ (50 ÷ 60) = 10 ÷ 0.8333 = 12.00 km/h
So a 10 km run in 50 minutes gives an average pace of 5:00 per kilometer and an average speed of 12 km/h.
Why You Might Replace Watchtower with Uptime Kuma
Watchtower is a tool that automatically pulls new images and recreates containers when updates are available. Uptime Kuma is a monitoring dashboard that checks HTTP, TCP, ping, and other endpoints at set intervals. They solve different problems. If you are considering swapping one for the other, you likely want to shift from automatic updates to proactive monitoring — or you may have found Watchtower’s auto-restart behavior disruptive and want a tool that only observes and alerts.
Common reasons to make the switch:
- You want to know when a service goes down, not just when an image is outdated.
- Watchtower restarts containers without your control, which can break sessions or cause downtime during peak hours.
- You prefer manual updates but want automated alerts for failures.
- You are consolidating monitoring tools and Uptime Kuma covers your needs.
How to Replace Watchtower with Uptime Kuma in Portainer
If you have decided to remove Watchtower and run Uptime Kuma instead, follow these steps. The exact menu names may vary slightly between Portainer versions, but the general flow is stable.
- In Portainer, go to Containers and stop the Watchtower container.
- Remove the Watchtower container (select it and click Remove). Do not delete its volume unless you want to lose its configuration.
- Go to Stacks or Containers and add a new container for Uptime Kuma.
- Use the image
louislam/uptime-kuma:1(or a newer stable tag). - Map port
3001to a host port of your choice (e.g.,3001:3001). - Mount a volume for persistent data, e.g.,
uptime-kuma-data:/app/data. - Set the restart policy to Unless stopped or Always.
- Deploy the container and open the web UI at
http://your-server:3001. - Create your first monitor by clicking Add New Monitor, choosing a type (HTTP, Ping, etc.), and entering the URL or host.
If you prefer using a stack (docker-compose), here is a minimal example:
version: "3"
services:
uptime-kuma:
image: louislam/uptime-kuma:1
container_name: uptime-kuma
ports:
- "3001:3001"
volumes:
- uptime-kuma-data:/app/data
restart: unless-stopped
volumes:
uptime-kuma-data:
Can You Run Both Watchtower and Uptime Kuma?
Yes, you can run both simultaneously. There is no conflict. Watchtower will update containers, and Uptime Kuma will monitor them. However, be aware that Watchtower may restart a container while Uptime Kuma is checking it, which could trigger a false alert. To avoid this, you can set Watchtower to update at a specific time (using the --schedule flag) and configure Uptime Kuma’s retries and notification intervals to tolerate brief restarts.
If you only want Uptime Kuma, you can disable Watchtower entirely. If you only want Watchtower, you do not need Uptime Kuma. The decision depends on whether you value automatic updates or proactive monitoring more.
Common Problems When Switching
Users often encounter a few issues when moving from Watchtower to Uptime Kuma:
- Port conflicts: Uptime Kuma uses port 3001 by default. If something else uses that port, change the host mapping.
- Data persistence: If you do not mount a volume, all monitors and settings are lost when the container is recreated.
- Notifications not working: Uptime Kuma supports many notification methods (email, Telegram, Discord, etc.). Test the notification after setup — many failures are due to wrong API keys or blocked ports.
- Monitoring behind a reverse proxy: If you access Uptime Kuma through a reverse proxy, ensure the proxy forwards WebSocket connections, which Uptime Kuma uses for real-time updates.
How to Choose Between Watchtower and Uptime Kuma
Ask yourself what problem you are trying to solve:
- If you want to keep containers up-to-date automatically, use Watchtower.
- If you want to know when a service is down or slow, use Uptime Kuma.
- If you want both, run both — they complement each other.
There is no inherent reason to replace one with the other. Many users run both because they serve different roles. If you are replacing Watchtower because it caused unexpected restarts, you may prefer to keep Watchtower but configure it to only notify (not restart) — though Watchtower’s core function is to update, so you might instead disable it and update manually.
Security Considerations
Both tools have security implications:
- Watchtower needs access to the Docker socket to manage containers. This is a privilege that, if compromised, could allow an attacker to control your host. Limit exposure by using a read-only socket or running it with minimal permissions.
- Uptime Kuma does not need Docker socket access unless you use the Docker monitor type. It runs as a web service, so protect it with a strong password and consider putting it behind a reverse proxy with HTTPS.
- Never expose the Docker socket publicly. If you must access Uptime Kuma remotely, use a VPN or a secure reverse proxy.
Frequently Asked Questions
Can I use Uptime Kuma to update my containers?
No. Uptime Kuma is a monitoring tool, not an updater. It checks if a service is reachable and alerts you if it is not. It does not pull images or restart containers. For automatic updates, you need Watchtower or a similar tool.
Will removing Watchtower break my existing containers?
No. Removing Watchtower only stops future automatic updates. Your existing containers will keep running exactly as they are. They will simply not be updated automatically anymore.
Does Uptime Kuma work with Portainer?
Yes. Uptime Kuma is just another container. You can deploy it via Portainer’s UI or a stack. It does not require any special integration with Portainer.
What is the difference between a monitor and a status page in Uptime Kuma?
A monitor is a single check (e.g., HTTP GET to a URL every 60 seconds). A status page is a public dashboard that displays the status of multiple monitors. You can create a status page to share service health with others.
How often should I set the check interval?
It depends on your needs and the load you want to put on your services. A common default is 60 seconds. For critical services, you might use 30 seconds. For less important ones, 5 minutes is fine. Shorter intervals generate more traffic and may trigger rate limits on external APIs.
Can I migrate my Watchtower configuration to Uptime Kuma?
No. They are different tools with different configuration formats. You will need to manually recreate your monitors in Uptime Kuma. There is no import function from Watchtower.
Related
Formula used
in t | Finish time | min | 50 | 0 in d | Distance | km | 10 | 0 | 100000 out pace | Average pace | min/km | t / d | 2 out speed | Average speed | km/h | d / (t / 60) | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- OnePlus Buds Pro 3 Price Drop: Are They Worth It?
- Cloud Migration Ways to Prepare
- Gadgets After Support Ends: Do They Improve?
- Delete Google Search Results About You
- Remote Work Productivity Hacks That Actually Work
- Epic Games Removes Dark and Darker? Fact Check