What is Monitorr?
"Monitorr” is a self-hosted PHP web app that monitors the status of local and remote network services, websites, and applications. -https://github.com/Monitorr/Monitorr
Installing Docker
- Log into the Linux based device
- Run the following commands in the terminal
# install prerequisites
sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y
# add docker gpg key
curl -fsSL https://download.docker.com/linux/$(awk -F'=' '/^ID=/{ print $NF }' /etc/os-release)/gpg | sudo apt-key add -
# add docker software repository
sudo add-apt-repository "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/$(awk -F'=' '/^ID=/{ print $NF }' /etc/os-release) $(lsb_release -cs) stable"
# install docker
sudo apt install docker-ce docker-compose containerd.io -y
# enable and start docker service
sudo systemctl enable docker && sudo systemctl start docker
# add the current user to the docker group
sudo usermod -aG docker $USER
# reauthenticate for the new group membership to take effect
su - $USER
Running Monitorr
- Now that Docker is installed, run the following commands to setup the Monitorr Docker container and run it
# create working directories
mkdir ~/docker/monitorr -p
# set owner of working directories
sudo chown "$USER":"$USER" ~/docker -R
# run the monitorr docker container
docker run -d --name=monitorr -v ~/docker/monitorr:/app -e TZ=America/New_York -e PGID=1000 -e PUID=1000 -p 8090:80 --restart=on-failure monitorr/monitorr - Open a web browser and navigate to http://DNSorIP:8090
- Click the Monitorr Settings link
- Click the Monitorr Registration link
- Click the Create button
- Scroll down and complete the form to create an administrator username and password > Click Register
- Click the Log in here link
- Login with the credentials created earlier
- Click Monitorr in the lower left corner of the page
- Welcome to Monitorr
Documentation: https://github.com/Monitorr/Monitorr/wiki/02-Config:--Docker