CI/CD Pipeline for NGINX on Docker — Phase 1: Architecture & Tools
by Frank Doka
CI/CD Pipeline for NGINX on Docker — Phase 1: Architecture & Tools
Phase 1 defines the architecture and introduces the four tools that each own one layer of the pipeline.
The Stack
| Layer | Tool | Responsibility |
|---|---|---|
| Packaging | Docker | Bundles NGINX + OpenSSL into a portable container image |
| Infrastructure | Terraform | Provisions EC2 instances, security groups, and key pairs as code |
| Configuration | Ansible | Installs Docker on EC2, pulls the image, runs the container |
| Orchestration | Jenkins | Triggers the full pipeline on every Git push |
Why These Tools
Each tool does one thing well and hands off to the next. Docker doesn't know about AWS. Terraform doesn't configure software. Ansible doesn't know when to run. Jenkins ties them together into a single automated flow — push code, get a running deployment.
What's Next
Phase 2 creates the Docker image: NGINX with a self-signed OpenSSL certificate, tested locally, and pushed to Docker Hub.