Running Homer Application Dashboard in Docker on Linux 🌱

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

  1. Log into the Linux based device
  2. 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

  1. 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
  2. Open a web browser and navigate to http://DNSorIP:8080
  3. Welcome to Homer
  4. 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
  5. Press CTRL+O, Enter, CTRL+X to write the changes
  6. Back in the web browser, refresh the page to view the changes

Documentation: https://hub.docker.com/r/b4bz/homer