Egg Repository

Pterodactyl Community Egg Repository

Uptime Kuma

Uptime Kuma is an easy-to-use self-hosted monitoring tool.

Read Me

Uptime Kuma

Author & Contributers

NameGithub ProfileBuy me a Coffee
gOOvERhttps://github.com/gOOvERko-fi

Description

Uptime Kuma is an easy-to-use self-hosted monitoring tool Egg is based on parkers generic nodejs egg

Links

Github: https://github.com/louislam/uptime-kuma

Admin & login

After installation and successful start, browse to your : and setup the Admin.

Server Ports

Uptime Kuma requires 1 port. You can choose any port you want

Portdefault
default3000

Cloudflared, Apprise & Chromium

The latest image provides support for Cloudflared and Apprise.

Cloudflared

With Cloudflared it is possible to create a proxy over Cloudflare without having to use an nginx proxy. More info here: https://github.com/louislam/uptime-kuma/wiki/Reverse-Proxy-with-Cloudflare-Tunnel

Apprise

Apprise provides notifications for all kinds of services. Uptime Kuma has a built-in support for Apprise. More info's here: https://github.com/caronc/apprise#supported-notifications

Monitor HTTP(s) - Browser Engine (Chromium)

The image supports the monitor "HTTP(s) - Browser Engine". To use this monitor, enter the following path in the settings under "General -> Chrome/Chromium Executable" (at the bottom):

/usr/bin/chromium-browser

Yolks
NameTag
ghcr.io/ptero-eggs/apps:uptimekumaghcr.io/ptero-eggs/apps:uptimekuma
Variables and Startup

Startup Command

if [[ -d .git ]] && [[ {{AUTO_UPDATE}} == "1" ]]; then npm run setup; fi; /usr/local/bin/node /home/container/server/server.js --port={{SERVER_PORT}}

Variables

Git Repo Address

GitHub Repo to clone I.E. https://github.com/parkervcp/repo_name

Environment Variable: GIT_ADDRESS
Default Value: https://github.com/louislam/uptime-kuma
User Viewable:
User Editable:
JS file

The file that starts the app

Environment Variable: JS_FILE
Default Value: server/server.js
User Viewable:
User Editable:
Auto Update

Environment Variable: AUTO_UPDATE
Default Value: 1
User Viewable:
User Editable:
Install Script
#!/bin/ash
# Uptime Kuma App Installation Script
#
# Server Files: /mnt/server
apk update
apk add --no-cache git curl jq file unzip make gcc g++ python3 python3-dev libtool
apk add --no-cache git-lfs --repository=https://dl-cdn.alpinelinux.org/alpine/latest-stable/community

## npm update to latest
echo -e "Updating npm to latest....\n"
if [ -d "/mnt/server/node_modules" ]; then
    rm -fR /mnt/server/node_modules
    npm cache verify
fi
npm install -g npm@latest

## Uptime Kuma install & update
mkdir -p /mnt/server
cd /mnt/server
git config --global --add safe.directory /mnt/server

if [ -d .git ]; then
    echo -e "Updating Uptime Kuma....\n "
    npm run setup
else
    echo -e "Download and installing Uptime Kuma...\n"   
    git clone https://github.com/louislam/uptime-kuma.git .
    npm run setup
fi

## only create dir, when .git is present to prevent errors
if [ -d .git ]; then
    mkdir -p /mnt/server/data
fi

if [ ! -f "/mnt/server/data/kuma.db" ]; then
    cp /mnt/server/db/kuma.db /mnt/server/data/kuma.db
fi

## install end
echo -e "-----------------------------------------"
echo -e "Installation completed..."
echo -e "-----------------------------------------"
exit 0
Installation Imagenode:18-alpineInstallation Entrypointash