Tyleo-Scripts/irp-kumadocker

14 lines
565 B
Text
Raw Normal View History

2024-02-18 18:06:30 +00:00
#!/usr/bin/env bash
curl https://static.tyleodev.fr/astra/banner-all
sudo mkdir /store
sudo mkdir /store/supervision
echo " Uptime Kuma Instance Maker - Docker Node (direct docker.sock connection) "
echo ""
echo -n "Instance Name (no space) : "
read instname
echo -n "Port (Random port is default) : "
read instport
docker volume create uptime-kuma-$instname
docker run -d --restart=always -p $instport:3001 -v /store/supervision/uptime-kuma-$instname:/app/data -v /var/run/docker.sock:/var/run/docker.sock --name uptime-kuma-$instname louislam/uptime-kuma:latest