November 25, 2026 | HBTECHSOLUTIONS
What started as a couple of scripts to simplify installing Docker and other infrastructure services eventually turned into something much bigger: a modular infrastructure deployment toolkit with automated safety checks, persistent configurations, and repeatable installation workflows.
Today, I’m releasing HBTECHSOLUTIONS Infrastructure Deployment Toolkit v2.0.0, an open-source project designed to make deploying common infrastructure services on Ubuntu Server more organized, predictable, and secure.
This release represents a complete redesign of the original installation process, backed by automated testing and real-world deployment validation.
Where It Started
The original project was straightforward. I wanted an easier way to install Docker, Portainer, Pi-hole, and WireGuard without constantly looking up commands, downloading installation scripts, or manually configuring every service.
The first version accomplished that goal, but it had limitations.
Installation procedures depended heavily on manual configuration. There wasn’t a centralized way to check the host’s readiness, detect conflicting services, or prevent an existing installation from being overwritten.
As my homelab projects became more complex, I realized the installation process needed to mature alongside them.
Rather than simply updating the original scripts, I decided to rebuild the toolkit around a more structured deployment model.
The Architecture Behind v2.0
The redesigned toolkit uses an interactive Bash menu supported by dedicated installation scripts, Docker Compose configurations, prerequisite checks, and automated regression tests.
The four primary components are:
Docker Engine
The toolkit evaluates the host before installation, identifying existing Docker installations, alternative container runtimes, architecture compatibility, and conditions requiring manual review.
A fresh installation requires explicit authorization. An existing compatible installation is detected and skipped rather than automatically replaced.
Portainer
Portainer provides a graphical interface for managing Docker containers and persistent resources.
In v2.0, its HTTPS management interface binds to localhost on port 9443 by default. Administrators can access it securely through SSH port forwarding without directly exposing the dashboard to the network.
Persistent Docker storage protects the administrator configuration during container recreation.
Pi-hole
Pi-hole adds DNS filtering capabilities.
The toolkit deploys Pi-hole with persistent configuration storage and localhost-bound DNS and web management ports.
This design prevents an experimental installation from unexpectedly replacing the host’s DNS settings or changing the router’s network configuration.
WireGuard
WireGuard provides encrypted VPN connectivity using a deliberately restricted configuration.
The default deployment uses the 10.77.77.0/24 VPN subnet, with client routes limited to the VPN server interface at 10.77.77.1/32.
Firewall restrictions prevent unrestricted forwarding from the VPN into other networks.
The endpoint configuration is stored locally with restrictive file permissions, while WireGuard keys and peer configurations are retained in persistent Docker storage.
Building Safeguards Into the Installation Process
One of my biggest priorities during development was making sure the toolkit wouldn’t blindly modify an existing server.
Before deploying services, the toolkit evaluates prerequisites such as operating system compatibility, Docker availability, port usage, and existing installations.
Where appropriate, it reports that an administrator needs to review the environment rather than continuing automatically.
Interactive confirmation is required for installation operations.
The toolkit also includes protections against overwriting existing WireGuard configuration files, changing unrelated Docker projects, or deleting persistent data during repeat deployments.
These safeguards don’t eliminate the need for proper backups and administrative review, but they make the installation process more deliberate.
Testing on a Fresh Ubuntu Server
I didn’t want to release this project based solely on successful syntax checks or automated tests.
To validate the complete experience, I provisioned a fresh Ubuntu Server 26.04.1 LTS virtual machine on my Proxmox travel-kit environment.
The test VM started without Docker installed.
From there, I cloned the toolkit repository, evaluated the host, installed Docker through the interactive menu, and deployed the remaining services individually.
Each component underwent functional testing.
Docker Engine
The toolkit successfully installed Docker Engine 29.10.1, Docker Compose 5.8.0, and Buildx 0.39.1.
The standard hello-world container completed successfully, and subsequent installation checks correctly identified the existing deployment.
Portainer
Portainer successfully deployed using its pinned container image and persistent storage.
I verified HTTPS connectivity, completed the initial administrator setup, and confirmed that the configuration survived container recreation.
Pi-hole
Pi-hole successfully resolved DNS queries over both TCP and UDP.
I also added a temporary blocked domain, verified that Pi-hole returned a blocked response, and confirmed that the configuration persisted after recreating the container.
The temporary test entry was removed afterward.
WireGuard
WireGuard required the most extensive network validation.
After deploying the server, I imported its generated peer configuration into a Windows WireGuard client.
The authenticated connection succeeded, and the client reached the VPN server interface with zero packet loss.
I then tested the isolation rules by attempting to reach a Docker-network destination through the tunnel.
The traffic was blocked, and the firewall’s DROP counters increased, confirming that the rules were actively preventing forwarding.
Finally, I recreated the WireGuard container and verified that the server retained its public key and established another peer handshake.
Problems Encountered Along the Way
Not every stage worked perfectly on the first attempt.
Ubuntu 26.04 compatibility
The Docker installer initially blocked Ubuntu 26.04 because it wasn’t included in the installation eligibility rules.
After reviewing the host and Docker package availability, I extended the supported release checks and validated the new behavior through automated tests and a successful clean-host installation.
Portainer initialization
The initial management setup required additional guidance for SSH tunneling and retrieving Portainer’s setup token.
Those instructions were added to the toolkit and documentation.
Legacy preflight checks
During final release review, I discovered that some preflight port descriptions still reflected the original WireGuard implementation.
I corrected the port inventory and created additional regression tests to prevent those checks from returning.
Container initialization timing
Immediately after recreating WireGuard, the interface wasn’t available during the first status check.
Subsequent checks confirmed that the interface had initialized successfully. The server identity, firewall rules, and connectivity were preserved.
These were useful reminders that deployment automation must account for version compatibility, service initialization, and realistic operating conditions.
Release Validation
Before publishing v2.0.0, I completed the automated regression suite and reviewed the repository for formatting problems, accidentally tracked sensitive files, and obvious embedded credentials.
All 15 automated test scripts passed.
The complete clean-host installation was validated on Ubuntu Server 26.04.1 LTS AMD64.
The project remains intended for homelabs, learning environments, and authorized infrastructure testing. Equivalent ARM64 clean-host validation and dedicated interrupted-installation fault testing remain outside the completed acceptance scope.
Documentation and Resources
Alongside the release, I updated my Ubuntu Server installation guide to cover the redesigned toolkit.
The guide walks readers through preparing Ubuntu Server, cloning the tagged GitHub release, deploying all four components, verifying their operation, and reviewing recovery and security procedures.
Rather than making readers reconstruct the project from screenshots, the PDF provides a complete installation reference.
Official GitHub Release:
https://github.com/iireddrag0nii/scripts/releases/tag/v2.0.0
Source Repository:
https://github.com/iireddrag0nii/scripts
Updated PDF Installation Guide:
Available in the My Guides section at https://hbtechsolutions.com
Lessons Learned
This project reinforced several principles I try to apply whenever I’m building infrastructure:
- Assess the environment before making changes.
- Make potentially disruptive operations explicit.
- Preserve existing configurations and persistent data.
- Validate functionality rather than relying exclusively on installation success messages.
- Test security restrictions with real traffic.
- Document failures and recovery procedures.
- Use isolated environments before introducing new automation to important systems.
The biggest takeaway was that the quality of an infrastructure tool isn’t determined only by whether it can install software.
It also matters how it responds to unexpected conditions, existing installations, and failed operations.
What’s Next?
Version 2.0.0 establishes a foundation for future enhancements, including broader platform testing, improved recovery validation, and additional deployment options.
For now, I’m pleased to have a tested, documented release that others can explore, learn from, and adapt to their own authorized environments.
Built, tested, and released by HBTECHSOLUTIONS.