What is Homer?
A dead simple static HOMepage for your servER to keep your services on hand, from a simple yaml configuration file. -https://github.com/bastienwirtz/homer
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 Homer
- Now that Docker is installed, run the following commands to setup the Homer Docker container and run it
# create working directories
mkdir /home/$USER/docker/homer -p
# set owner of working directories
sudo chown "$USER":"$USER" /home/"$USER"/docker -R
# run the homer docker container
docker run -d --name homer -p 8080:8080 -v /home/$USER/docker/homer:/www/assets --restart=unless-stopped b4bz/homer:latest - Open a web browser and navigate to http://DNSorIP:8080
- Welcome to Homer
- To make changes to the dashboard, edit the config.yml file with the following command
# edit homer config.yml
sudo nano ~/docker/homer/config.yml - Press CTRL+O, Enter, CTRL+X to write the changes
- Back in the web browser, refresh the page to view the changes
Documentation: https://hub.docker.com/r/b4bz/homer