uptime
Uptime Kuma - monitoring uptime of services.
Prepare
podman pull docker.io/louislam/uptime-kuma:2
mkdir -p $HOME/apps/{variables,container_data}
touch $HOME/apps/variables/uptime.env
mkdir -p $HOME/apps/container_data/uptime
Edit environment file
Edit the environment file and paste your default values for this service:
Example contents:
Installation
# uptime.container
[Unit]
Description=Uptime Kuma
[Container]
ContainerName=uptime
HostName=uptime
AutoUpdate=registry
Image=docker.io/louislam/uptime-kuma:2
Network=skynet.network
DNS=10.0.0.250
HealthCmd=curl http://127.0.0.1:3001
#linuxserver.io specific
UIDMap=1000:0:1
UIDMap=0:1:1000
UIDMap=1001:1001:64536
EnvironmentFile=%h/apps/variables/uptime.env
Volume=%h/apps/container_data/uptime:/app/data
[Service]
Restart=always
TimeoutStartSec=300
[Install]
WantedBy=default.target
Configuration of Nginx (Reverse Proxy)
Create nginx conf.
Configuration for nginx conf for port 80.
server {
listen 80;
server_name uptime.skynet.lan;
access_log /var/log/nginx/uptime_access.log;
error_log /var/log/nginx/uptime_error.log;
location / {
proxy_pass http://uptime:3001;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
Restart Nginx
Usage
Open http://uptime.skynet.lan