Skip to content

dockermgr/uptime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

👋 Welcome to uptime 🚀

Description

Install my system scripts

 sudo bash -c "$(curl -q -LSsf "https://github.com/systemmgr/installer/raw/main/install.sh")"
 sudo systemmgr --config && sudo systemmgr install scripts  

Automatic install/update

dockermgr update uptime

Install and run container

mkdir -p "$HOME/.local/share/srv/docker/uptime/rootfs"
git clone "https://github.com/dockermgr/uptime" "$HOME/.local/share/CasjaysDev/dockermgr/uptime"
cp -Rfva "$HOME/.local/share/CasjaysDev/dockermgr/uptime/rootfs/." "$HOME/.local/share/srv/docker/uptime/rootfs/"
docker run -d \
--restart always \
--privileged \
--name casjaysdevdocker-uptime \
--hostname uptime \
-e TZ=${TIMEZONE:-America/New_York} \
-v "$HOME/.local/share/srv/docker/casjaysdevdocker-uptime/rootfs/data:/data:z" \
-v "$HOME/.local/share/srv/docker/casjaysdevdocker-uptime/rootfs/config:/config:z" \
-p 80:80 \
casjaysdevdocker/uptime:latest

via docker-compose

version: "2"
services:
  ProjectName:
    image: casjaysdevdocker/uptime
    container_name: casjaysdevdocker-uptime
    environment:
      - TZ=America/New_York
      - HOSTNAME=uptime
    volumes:
      - "$HOME/.local/share/srv/docker/casjaysdevdocker-uptime/rootfs/data:/data:z"
      - "$HOME/.local/share/srv/docker/casjaysdevdocker-uptime/rootfs/config:/config:z"
    ports:
      - 80:80
    restart: always

Get source files

dockermgr download src casjaysdevdocker/uptime

OR

git clone "https://github.com/casjaysdevdocker/uptime" "$HOME/Projects/github/casjaysdevdocker/uptime"

Build container

cd "$HOME/Projects/github/casjaysdevdocker/uptime"
buildx 

Authors

🤖 casjay: Github 🤖
⛵ casjaysdevdocker: Github Docker