{"id":24458405,"url":"https://github.com/cspyridakis/homelab","last_synced_at":"2026-04-01T17:18:18.144Z","repository":{"id":273113086,"uuid":"914314920","full_name":"CSpyridakis/homelab","owner":"CSpyridakis","description":"Homelab project is an on-premises infrastructure that accommodates the networks and devices I use for experimenting with new technologies or providing private and self-hosted services.","archived":false,"fork":false,"pushed_at":"2025-05-01T04:55:37.000Z","size":11339,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-12-01T04:48:17.743Z","etag":null,"topics":["containers","docker","homelab","homepage","intel-nuc","jetson-nano","on-premises","portainer","private-cloud","proxmox-ve","raspberry-pi","truenas-scale"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CSpyridakis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-01-09T11:03:00.000Z","updated_at":"2025-06-04T21:51:30.000Z","dependencies_parsed_at":"2025-01-18T19:29:24.879Z","dependency_job_id":"06f24619-61d9-4e3f-97e1-2d87fd2c6fb3","html_url":"https://github.com/CSpyridakis/homelab","commit_stats":null,"previous_names":["cspyridakis/homelab"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/CSpyridakis/homelab","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CSpyridakis%2Fhomelab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CSpyridakis%2Fhomelab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CSpyridakis%2Fhomelab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CSpyridakis%2Fhomelab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CSpyridakis","download_url":"https://codeload.github.com/CSpyridakis/homelab/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CSpyridakis%2Fhomelab/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31044982,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-27T09:35:52.079Z","status":"ssl_error","status_checked_at":"2026-03-27T09:35:20.916Z","response_time":164,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["containers","docker","homelab","homepage","intel-nuc","jetson-nano","on-premises","portainer","private-cloud","proxmox-ve","raspberry-pi","truenas-scale"],"created_at":"2025-01-21T03:14:04.929Z","updated_at":"2026-04-01T17:18:18.122Z","avatar_url":"https://github.com/CSpyridakis.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🏠 Homelab\n\nTechnologies used:\n\u003ca href=\"https://www.proxmox.com/en/\"\u003e\u003cimg style=\"height: 36px\" src=\"doc/icons/proxmox.png\" alt=\"proxmox Logo\" class=\"logo\"\u003e\u003c/a\u003e \n\u003ca href=\"https://www.portainer.io/\"\u003e\u003cimg style=\"height: 36px\" src=\"doc/icons/portainer.svg\" alt=\"portainer Logo\" class=\"logo\"\u003e\u003c/a\u003e \n\u003ca href=\"https://www.docker.com/\"\u003e\u003cimg style=\"height: 36px\" src=\"doc/icons/docker.png\" alt=\"Docker Logo\" class=\"logo\"\u003e\u003c/a\u003e \n\u003ca href=\"https://mikrotik.com/\"\u003e\u003cimg style=\"height: 36px\" src=\"doc/icons/mikrotik.png\" alt=\"Mikrotik Logo\" class=\"logo\"\u003e\u003c/a\u003e \n\u003ca href=\"https://www.pfsense.org/\"\u003e\u003cimg style=\"height: 36px\" src=\"doc/icons/PfSense_logo.png\" alt=\"PfSense Logo\" class=\"logo\"\u003e\u003c/a\u003e \n\u003ca href=\"https://nginxproxymanager.com/\"\u003e\u003cimg style=\"height: 36px\" src=\"doc/icons/nginx-proxy-manager.png\" alt=\"nginx-proxy-manager Logo\" class=\"logo\"\u003e\u003c/a\u003e \n\u003ca href=\"https://www.truenas.com/\"\u003e\u003cimg style=\"height: 36px\" src=\"doc/icons/Truenas.png\" alt=\"Truenas Logo\" class=\"logo\"\u003e\u003c/a\u003e\n\u003ca href=\"https://about.gitea.com/\"\u003e\u003cimg style=\"height: 36px\" src=\"doc/icons/gitea.png\" alt=\"gitea Logo\" class=\"logo\"\u003e\u003c/a\u003e\n\u003ca href=\"https://openwrt.org/\"\u003e\u003cimg style=\"height: 36px\" src=\"doc/icons/openwrt-logo.png\" alt=\"openwrt Logo\" class=\"logo\"\u003e\u003c/a\u003e \n\u003ca href=\"https://www.terraform.io/\"\u003e\u003cimg style=\"height: 36px\" src=\"doc/icons/terraform.png\" alt=\"terraform Logo\" class=\"logo\"\u003e\u003c/a\u003e \n\u003ca href=\"https://docs.ansible.com/\"\u003e\u003cimg style=\"height: 70px\" src=\"doc/icons/ansible.png\" alt=\"ansible Logo\" class=\"logo\"\u003e\u003c/a\u003e \n\u003ca href=\"https://prometheus.io/\"\u003e\u003cimg style=\"height: 43px\" src=\"doc/icons/prometheus.png\" alt=\"prometheus Logo\" class=\"logo\"\u003e\u003c/a\u003e \n\u003ca href=\"https://grafana.com/\"\u003e\u003cimg style=\"height: 36px\" src=\"doc/icons/grafana-logo.png\" alt=\"grafana Logo\" class=\"logo\"\u003e\u003c/a\u003e \n\u003ca href=\"https://kubernetes.com/\"\u003e\u003cimg style=\"height: 36px\" src=\"doc/icons/Kubernetes_logo.svg\" alt=\"kubernetes Logo\" class=\"logo\"\u003e\u003c/a\u003e \n\u003cimg style=\"height: 40px; background-color:inherit\" src=\"doc/icons/ollama-logo.png\" alt=\"ollama Logo\" class=\"logo\"\u003e\n\n---\n\n## 🗒️ General Notes\n\nThis repository serves as the primary documentation hub for my **Homelab**.\n\n**Homelab** is a personal project — an on-premises private infrastructure that hosts the networks and machines I use for experimenting with new technologies or providing private, self-hosted services. This approach ensures that data is stored on proprietary devices, offering a secure testbed for learning before applying similar principles in the field.\n\nIn this repository: [https://github.com/CSpyridakis/notes](https://github.com/CSpyridakis/notes), you can find general notes on various technologies. Some of these notes pertain to the creation and maintenance of this **Homelab**.\n\nFor quick access and an at-a-glance overview of the **Homelab**'s status, I use the [homepage dashboard](https://github.com/gethomepage/homepage). My configuration for this dashboard is available in the following repository: [https://github.com/CSpyridakis/homepage](https://github.com/CSpyridakis/homepage).\n\nRegarding my Desktop Workstation, which is one of the devices in this network, I use an Ubuntu Desktop system as my daily driver. This is my main device for development. One of the most important aspects is the applications I use and their configurations. Therefore, my personal collection of dotfiles is also available here: [https://github.com/CSpyridakis/dotfiles](https://github.com/CSpyridakis/dotfiles).\n\n---\n\n## 🖧 Network Diagram\nThe core elements of my **Homelab**  are showcased in the following diagram. These elements will be described later.\n\n![Homelab Network](./doc/Homelab.drawio.png)\n\n---\n\n## 🌐 Routers\n\nIn my setup, three different routers are used, each with its own subnet and purpose:\n\nA. The first is my `ISP modem/router`, which provides network connectivity to all the apartments in my building.\n\nB. The second is my `Home network` router, which provides internet access to general home devices such as smart TVs, IP cameras, and sensors. It also hosts the guest network.\n\nC. Finally, there is my **Homelab** network router, which connects all the devices related to this project.\n\nBoth my Home and **Homelab** routers are MikroTik routers, which means they can be strictly configured based on my needs.\n\nAs can be easily inferred, my **Homelab** exists behind a NAT. However, for various reasons, I need to access my **Homelab** from anywhere in the world. One of my design rules, however, is to avoid exposing any services directly to the internet.\n\nTo achieve this, I use one of the `VPN Services` along with the `IP Cloud` feature provided by `MikroTik` to create a VPN tunnel for secure access to my network. To complete the setup, the proper ports must also be forwarded through the other two routers.\n\nBelow is a screenshot from `Winbox` that provides a general understanding of the **Homelab** network.\n\n![Mikrotik Screenshot](./doc/mikrotik.png)\n\n## Access Points\nIn my setup, I also have two different access points: one for the internal network and another for the external network. Both devices run [OpenWrt](https://openwrt.org/) to allow more granular configuration.\n\n![openwrt screenshot](./doc/openwrt.png)\n\n## **Homelab** devices\nHaving explained the interconnection of devices, this section will describe the actual devices used and their purpose.\n\n### 🖥️ 1. Main Server\n\n#### Proxmox\nIn my main processing device, I decided to run a [Τype 1](https://aws.amazon.com/compare/the-difference-between-type-1-and-type-2-hypervisors/) [Hypervisor](https://en.wikipedia.org/wiki/Hypervisor) in order to easily spawn Virtual Machines (VMs) based on my needs.\n\nFor this purpose, [Proxmox VE](https://www.proxmox.com/en/) was selected. \n\nTo leverage the Nvidia GPU that my main server accommodates, actions were also taken to passthrough the GPU to the host.\n\n![proxmox screenshot](./doc/proxmox.png)\n\n##### 🖥️🖥️ A. Virtual Machines\nUsing Proxmox, different VMs can be easily created, and services can be deployed on them to run experiments that follow [IaaS](https://en.wikipedia.org/wiki/Infrastructure_as_a_service) principles before continuing development or production activities in other infrastructures, whether private or public. Some of these VMs are behind a firewall, to be more specific a virtual pfsense deployed as a VM in the Proxmox server, to be able to communicate in their internal subnets.\n\n##### 🐳 B. Portainer\nOne of my needs is related to container deployment. [Portainer](https://www.portainer.io/) is a widely used container management software; for this reason, Portainer is also deployed as an LXC and provides container management services when I need to test individual containers that are not part of a Kubernetes cluster or run services required in my network.\n\nThe docker-compose files that are used to create my stacks are available here: [https://github.com/CSpyridakis/dockerfiles](https://github.com/CSpyridakis/dockerfiles).\n\n![portainer screenshot](./doc/portainer.png)\n\n##### Nginx Proxy manager\nMoreover, Nginx Proxy Manager is one of the containers that continuously runs on my main server. This way, I provide reverse proxy mechanism to my other services.\n\nOne option would be to define the hostnames of the services statically in the `/etc/hosts` file of my devices or in my router. However, this would require syncing this information between different machines and networks (if I decide to recreate a similar project elsewhere). For this reason, I chose to create a domain using [Duck DNS](https://www.duckdns.org/), which will have an `A record` that resolves to a private IP and can be updated once to run from everywhere. Finally, the option to create certificates using [Let's encrypt](https://letsencrypt.org/), which Nginx Proxy Manager provides, was used to add TLS for these services.\n\nIn my setup I use [Duck DNS](https://www.duckdns.org/), hence, to gain a certificate, I have to follow this procedure.\n![gninx proxy manager ssl setup screenshot](./doc/npm-ssl.png)\n\n![gninx proxy manager screenshot](./doc/nginx-proxy-manager.png)\n\n##### C. Services\n###### 🤖 C.1 [Ollama](https://ollama.com/)\nFinally, on my Proxmox node, I run some services directly. These services are not part of a VM or container and are deployed directly on the host. The reason for this is ease of use, and because they are not meant to be uninstalled from the system. A main example is the Ollama server, which I use to provide LLM support and experiment with them.\n\nDuring my prompt experimentation, some modelfiles were created, which are available here: [https://github.com/CSpyridakis/modelfiles](https://github.com/CSpyridakis/modelfiles).\n\n![ollama server screenshot](./doc/ollama-server.png)\n\n##### D. Kubernetes Cluster\n\nFor experimentation and learning, I used [Terraform](https://developer.hashicorp.com/terraform) (see [this](./proxmox/terraform/) directory) to provision Proxmox and create multiple virtual machines. \n\nThese VMs are then configured using [Ansible](https://docs.ansible.com/) (see [this](./proxmox/ansible/) directory) to form a [Kubernetes](https://kubernetes.io/) cluster. To monitor the VMs, Ansible also sets up [Prometheus](https://prometheus.io/) and [Grafana](https://grafana.com/) to display metrics.\n\nPrometheus by default has its own UI which is available by visiting `http://[IP-DOMAIN]:9090`.\n\n![prometheus UI screenshot](./doc/prometheus-ui.png)\n\nSince the extracted metrics may lack sufficient detail, Grafana can be used to gain deeper insights into the system. After deployment, visit `http://[IP-or-DOMAIN]:3000` to access the Grafana dashboard.\n\n![Grafana UI screenshot](./doc/grafana.png)\n\n--- \n\n### 🖴 2. Network attached storage (NAS) \nAs my main storage system, I have installed [TrueNAS Scale](https://www.truenas.com/) on an Intel NUC device. This way, I can access and store files from any device in my **Homelab** network, even from devices connected via VPN.\n\nTo differentiate the access for services and users, multiple datasets have been created with different privileges.\n\nThe NAS stores my files in a RAID configuration, providing redundancy in case of a failure of one of the storage disks.\n\n![true nas screenshot](./doc/truenas.png)\n\n#### ⚙️ Services\nEvery service related to storage runs on this device.\nFirst and foremost, there are services that handle my personal data, such as [Nextcloud](https://nextcloud.com/), [Jellyfin](https://jellyfin.org/), and [Photoprism](https://www.photoprism.app/) for my multimedia, etc.\n\nThen, there are other services related to the storage of code, containers, and more - on my premises. For this reason, I use [Gitea](https://about.gitea.com/) and [Distribution](https://distribution.github.io/distribution/).\n\n\n--- \n\nThere are also some low-computation devices with limited capabilities that I use in my **Homelab**.\n\n### 3. Intel NUC\n\nI have an Intel NUC device, more specifically a `NUC10i3FNH`, which runs `x86` experiments that, for various reasons, are more convenient to run outside of a VM. Or on a device like this, which can behave as an edge node in a particular application. This device runs `Ubuntu Server`, and its main specs are listed below.\n\n![nuc device info](./doc/nuc.png)\n\n### 4. Raspberry PI\nFor experiments that need to run on an `ARM-based` system, a `Raspberry Pi` is also used in my Homelab. Similarly to the NUC device, it also runs `Ubuntu Server`.\n\n![raspberry pi info](./doc/raspberry.png)\n\n### 5. Jetson Nano\n\nFinally, for applications that require an embedded Linux system equipped with a GPU, I also have a `Jetson Nano`, which serves as my first point of experimentation in this field.\n\n![jetson nano info](./doc/jetson-nano.png)\n\n--- \n\n## Future goals\n- Create an automated BU mechanism\n- Migrate to immich\n- Deploy Portainer stacks into the Kubernetes Cluster\n- Increase the number of physical devices \u0026 Cluster Proxmox\n- High Availability \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcspyridakis%2Fhomelab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcspyridakis%2Fhomelab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcspyridakis%2Fhomelab/lists"}