References : https://github.com/louislam/uptime-kuma
This project contains Uptime Kuma that will be deployed as an app on a Dokku host.
Run Uptime Kuma on Dokku host
# Create app
dokku apps:create kuma
# Create persistent storage folder
sudo mkdir -p /var/lib/dokku/data/storage/kuma
Edit app docker-options:
dokku docker-options:add kuma deploy,run "-v /var/lib/dokku/data/storage/kuma:/app/data"
dokku git:sync --build kuma https://github.com/davmrtl/dokku-uptime-kuma.git main
Map ports and add SSL using dokku-letsencrypt:
# Map ports
dokku config:set kuma DOKKU_PROXY_PORT_MAP="http:80:3001"
# Add SSL
dokku config:set --no-restart kuma [email protected]
dokku letsencrypt:enable kuma
# Check if ports are mapped correctly
dokku config:get kuma DOKKU_PROXY_PORT_MAP
# Should output: "http:80:9000 https:443:9000"