{"id":27264207,"url":"https://github.com/dhanushnadar/iac-docker","last_synced_at":"2026-05-01T16:36:22.765Z","repository":{"id":287204760,"uuid":"963923138","full_name":"DhanushNadar/Iac-Docker","owner":"DhanushNadar","description":"This project showcases Infrastructure as Code (IaC) by using Terraform to spin up a sample nodejs app container, complete with validation, planning, provisioning, and cleanup workflows.","archived":false,"fork":false,"pushed_at":"2025-04-10T13:28:51.000Z","size":401,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T14:51:55.108Z","etag":null,"topics":["devops","docker","hcl","nodejs","terraform"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DhanushNadar.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2025-04-10T12:22:16.000Z","updated_at":"2025-04-10T13:31:03.000Z","dependencies_parsed_at":"2025-04-10T14:51:57.416Z","dependency_job_id":"8e294bba-73de-4976-93ad-5fb0356c911c","html_url":"https://github.com/DhanushNadar/Iac-Docker","commit_stats":null,"previous_names":["dhanushnadar/iac-docker"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DhanushNadar%2FIac-Docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DhanushNadar%2FIac-Docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DhanushNadar%2FIac-Docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DhanushNadar%2FIac-Docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DhanushNadar","download_url":"https://codeload.github.com/DhanushNadar/Iac-Docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248358548,"owners_count":21090401,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["devops","docker","hcl","nodejs","terraform"],"created_at":"2025-04-11T06:51:32.133Z","updated_at":"2026-05-01T16:36:22.719Z","avatar_url":"https://github.com/DhanushNadar.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🌍 Terraform Docker Container Provisioning\n\nThis project demonstrates how to use **Terraform** to provision and manage a **Docker container** locally using **Infrastructure as Code (IaC)** principles.\n\n---\n\n## 🚀 Objective\n\nProvision a Docker container using Terraform on your local machine.\n\n---\n\n## 🛠️ Tools \u0026 Tech Stack\n\n- **Terraform** – IaC tool for automating infrastructure\n- **Docker** – Containerization platform\n- **Local system** (Linux/macOS/Windows with Docker \u0026 Terraform installed)\n\n---\n\n## 📁 Project Structure\n\n![Project-structure Screenshot](images/project-structure.png)\n\n## 🔧 Prerequisites\n\n- [Terraform Installed](https://developer.hashicorp.com/terraform/downloads)\n- [Docker Installed \u0026 Running](https://docs.docker.com/get-docker/)\n- Docker daemon must be running locally\n\n---\n\n## 🖼️ Tf files Screenshots\n\n![providerstf Screenshot](images/providerstf.png)\n![main tf Screenshot](images/maintf.png)\n![main page Screenshot](images/main.png)\n\n## 🚀 How to Run\n\n\n### ✅ Initialize Terraform\n\n```bash\nterraform init\n```\n\n![init Screenshot](images/init.png)\n\n\n### 🔍 Validate Configuration\n\n```bash\nterraform validate\n```\nChecks the syntax and structure of your Terraform configuration files.\n\n![validate Screenshot](images/validate.png)\n\n🔍 Check What Will Be Created\n```bash\nterraform plan\n```\nPreviews the infrastructure that Terraform will create or modify.\n\n![plan Screenshot](images/plan.png)\n\n⚙️ Apply \u0026 Provision Infrastructure\n\n```bash\nterraform apply\n```\nApplies the Terraform configuration to create the container. Confirm with yes when prompted.\n\n![apply Screenshot](images/apply.png)\n\n⚙️ State List\n\n```bash\nterraform state list\n```\n\n![state Screenshot](images/state.png)\n\n🌐 Access the App\nAfter provisioning is complete, you can access the app from your browser at:\n\n```bash\nhttp://localhost:3000\n```\nThis is a running nginx container exposed on port 8080.\n\n\n🧼 Destroy Infrastructure\n\n```bash\nterraform destroy\n```\n\n![destroy Screenshot](images/destroy.png)\n\nTears down the container and cleans up resources. Confirm with yes when prompted.\n\n\n\u003e 💡 Made with ❤️ using Terraform and Docker by Dhanush Nadar!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhanushnadar%2Fiac-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdhanushnadar%2Fiac-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhanushnadar%2Fiac-docker/lists"}