Plans
03/06/25
Current Goals
So with my homelab so far I have this site running locally on my Debian machine. I also have an easy deployment script to manually push updates as well as ufw
set up and ports managed. My current goal is to have the site exposed to the internet. Another of my major goals is to set up local repo hosting with Gitea on my laptop. That also ties into a better automation pipeline that I want to create for the website where whenever I push to the remote repo on my laptop (in Gitea), it will rebuild and restart the Docker containers. So in order for me to achieve that, the first thing to do would be to set up Gitea at some point.
Homelab Repo
I've also created homelab repo in order for me to store service definitions such as Docker Compose files, automation scripts, configurations for ufw
, Nginx, and whatever else for my homelab so I can have better organisation. The repo is publically available on GitHub here.
I decided to also have a local version of the repo on my laptop in the /srv directory so that I and other necessary users can easily access it. I thought of creating a dedicated homelab
group and adding myself and the ci
user to it, then making the homelab directory be owned by my default user but the homelab
group.
I ran the following commands to achieve that:
sudo groupadd homelab
sudo usermod -aG homelab jiggy
sudo usermod -aG homelab ci
cd /srv
sudo mkdir homelab
sudo chown jiggy:homelab homelab
sudo chmod 2775 homelab
cd homelab
git clone https://github.com/nicoll-douglas/homelab.git .
I also set the setGID bit with the 7th command for the directory so that group ownership is inherited for descendant files and directories.
I've also done some minor changes to the deployment script for this website so that it can can just easily use a Docker Compose file and script I have in the homelab repo.