/homelab-container

This repo will help you to to buld your eaiest docker application center in your home machine.

GNU General Public License v3.0GPL-3.0

Docker Compose files and some instruction

This reposetory is the collection of comman application which i used in my homelab, I created this repo to help my colleagues.

Setup base machine for further follow this instruction

In my homelab enviroment Rocky Linux is the go to linux distro there are plenty of other good distros available you can choose according to your expertise.

Docker installation

Follow This instruction according to your linux distro

On Rockylinux script

sudo dnf update && sudo apt upgrade -y 
sudo dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo dnf -y install docker-ce docker-ce-cli containerd.io docker-compose-plugin
sudo systemctl --now enable docker

For other distros follow below links

Docker containers management with cli or GUi

To manage docker container application we have multiple ways :-

if you know how to use docker-cli and manage everything with docker-cli you should't be on this repo
portainer is a lightweight web UI which allows to manage docker application

Easy Portainer installed with one command line string

This is the simplest way to manage docker just paste this line after distro selection.

docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v /home/rocky/all-container-data/portainer:/data portainer/portainer-ce:latest

alt text

All done !

Now all the complicated task has been completed we can go further and choose whichever application we need from the below software list.

Application Deployment

Follow this steps after selection of software

  1. click on compose file link
  2. copy the code
  3. open portainer in your web browser
  4. got to the stack section
  5. name your stack(application name)
  6. paste the copied code below.

List of all software

Se. No Name Discriptions Compose File Offecial Doc
1 portainer container mgmt UI Compose file Github
2 homer dashboard static dashboard Compose file Github
3 MariaDB database server Compose file Github
4 PhpMyAdmin web gui for database server managment Compose file Github
5 pihole DNS sinkhole (ad-blocker) Compose file Github
6 lychee photo gallery server Compose file github