#!/bin/bash
# - bof - #



<<'comment'
# - Configured - #


rm -rf ~/.bashrc;
vim ~/.bashrc;

rm -rf ~/.zshrc;
vim ~/.zshrc;


ssh-keygen -R 192.168.1.1

# - On client - #
cd ~/.ssh;
ssh-keygen -t rsa;

cat ~/.ssh/id_rsa.pub;

# - On server - #
vim ~/.ssh/authorized_keys;

sudo apt install curl git htop inxi net-tools ntp neovim screenfetch tree -y;

comment





# :a
# -  - #
# - Documentation - #

# :a.1
# -  - #
# - Uptima-Kuma - #
https://www.youtube.com/watch?v=mR6r8uIotyQ
https://github.com/louislam/uptime-kuma
https://docs.techdox.nz/uptimekuma/


# :a.2
# -  - #
# - Software installation - #
ssh uDocker;
ssh 192.168.1.170;

# :a.2.1
# -  - #
# - Terminal - Docker command - #
docker run -d --restart=always \
           -p 3001:3001 \
           -v uptime-kuma:/app/data \
           --name uptime-kuma louislam/uptime-kuma:1;

# :a.2.2
# -  - #
# - docker-compose.yml - #

mkdir -p /Data/Docker/UptimeKuma;
cd /Data/Docker/UptimeKuma;

vim docker-compose.yml

version: '3'
services:
  uptime-kuma:
    image: louislam/uptime-kuma:1
    container_name: uptime-kuma
    restart: always
    ports:
      - "3001:3001"
    volumes:
      - uptime-kuma:/app/data
      - /var/run/docker.sock:/var/run/docker.sock

volumes:
  uptime-kuma:

sudo docker compose up -d;


# :a.2.3
# -  - #
# - Access Uptime-Kuma - #
http://192.168.1.170:3001



# :a.3
# -  - #
# - Gotify - #









 

# - eof - #