# HYD Deployment Framework

> An infrastructure automation framework for reproducible deployments.

- Author: Juan Diego Hernández Derch
- Page: https://juandiegohernandezderch.com/en/projects/hyd-deployment-framework
- Source code: https://github.com/ByImTheJuan/hyd-deployment-framework
- Technologies: Shell scripting, Linux, Docker

## Motivation

After manually deploying and reconfiguring projects like Melik Bakery on a self-hosted server, I noticed the same setup steps repeating across projects — installing dependencies, configuring Docker networks, wiring up reverse proxy rules. I built this framework to turn that repeated manual process into a reproducible, scriptable one.

## Problem Solved

Manually deploying and configuring services on a self-hosted Linux server is repetitive and error-prone: it's easy to forget a step, misconfigure a network, or end up with an environment that behaves differently from the last one. This framework standardizes that process into scripts that produce the same environment every time.

The HYD Deployment Framework is a set of shell-based tooling for automating and standardizing
deployments to a self-hosted Linux server, built out of the recurring manual work involved in
deploying containerized projects like Melik Bakery.

## Topics covered

- **Deployment automation** — scripting the steps that were previously performed manually for
  each new deployment.
- **Reproducible environments** — ensuring a deployment behaves the same way every time it runs,
  regardless of the state of the target machine beforehand.
- **Shell scripting** — the framework itself is implemented as a collection of composable shell
  scripts.
- **Linux** — targets self-hosted Linux servers as the deployment environment.
- **Docker** — automates container and network setup as part of the deployment sequence.
- **Developer tooling** — designed to be a reusable tool across projects, not a one-off script
  tied to a single application.

## Motivation

The framework grew directly out of deploying [Melik Bakery](/en/projects/melik-bakery) by hand:
repeating the same Docker network setup, dependency installation, and reverse proxy
configuration steps for every deployment made it clear those steps belonged in a script, not in
memory.

## Lessons Learned

Writing deployment steps as scripts forces you to make every assumption explicit — anything not automated is a step you will eventually forget or get wrong under pressure. It also made it obvious how much of "deployment" is really just careful sequencing and idempotency, not raw complexity.
