{"id":41465222,"url":"https://github.com/adrianfinantyo/terraform-docker-sample","last_synced_at":"2026-01-23T16:27:25.828Z","repository":{"id":204942832,"uuid":"713025180","full_name":"adrianfinantyo/terraform-docker-sample","owner":"adrianfinantyo","description":"Terraform Docker - Docker Container Management with Terraform. A Terraform-based solution for Docker container management, simplifying local development and facilitating future IaaS deployments.","archived":false,"fork":false,"pushed_at":"2023-11-01T17:35:48.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-21T12:38:30.982Z","etag":null,"topics":["collection","docker","example","iac","open-source","sample","terraform","terraform-docker"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/adrianfinantyo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-11-01T17:26:24.000Z","updated_at":"2023-11-01T17:40:55.000Z","dependencies_parsed_at":"2023-12-05T08:48:40.867Z","dependency_job_id":null,"html_url":"https://github.com/adrianfinantyo/terraform-docker-sample","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"050dfc8347b391c85f8d68b20da674dac31f2293"},"previous_names":["adrianfinantyo/terraform-docker-sample"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/adrianfinantyo/terraform-docker-sample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianfinantyo%2Fterraform-docker-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianfinantyo%2Fterraform-docker-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianfinantyo%2Fterraform-docker-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianfinantyo%2Fterraform-docker-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adrianfinantyo","download_url":"https://codeload.github.com/adrianfinantyo/terraform-docker-sample/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianfinantyo%2Fterraform-docker-sample/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28695531,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T15:57:05.722Z","status":"ssl_error","status_checked_at":"2026-01-23T15:56:27.656Z","response_time":59,"last_error":"SSL_read: 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":["collection","docker","example","iac","open-source","sample","terraform","terraform-docker"],"created_at":"2026-01-23T16:27:21.700Z","updated_at":"2026-01-23T16:27:25.808Z","avatar_url":"https://github.com/adrianfinantyo.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform-Docker Sample\n\nWelcome to the repository for managing Docker images and containers using Terraform. This repository is designed to help you manage and deploy Docker containers for local development and provides a foundation for future IaaS-based production deployments.\n\n## Table of Contents\n\n- [Overview](#overview)\n- [Prerequisites](#prerequisites)\n- [Getting Started](#getting-started)\n- [Usage](#usage)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Overview\n\nThis repository serves as an Infrastructure as Code (IaC) solution for deploying Docker containers. It offers a structured and version-controlled approach for managing your Docker images and containers using Terraform. The setup includes:\n\n1. Dockerfile for building custom Docker images.\n2. Terraform configuration for defining container resources and local development environments.\n\n## Prerequisites\n\nBefore getting started, make sure you have the following prerequisites installed on your local development machine:\n\n- [Docker](https://www.docker.com/get-started)\n- [Terraform](https://learn.hashicorp.com/tutorials/terraform/install-cli)\n- Any additional tools or dependencies required for your specific projects.\n\n## Getting Started\n\n### For Your Reference\n\nYou can check out the available Terraform-Docker config in this repository as a reference for your own projects.\n\n### Genereate Your Own Terraform-Docker Config\n\nYou can also generate your own Terraform-Docker config by using the script provided in this repository. To do so, follow these steps:\n\n1. Run the `tf-docker-template.sh` script in your terminal or you can also run it without cloning the repository by using the following command:\n\n   ```bash\n   sh  -c \"$(curl -fsSL https://raw.githubusercontent.com/adrianfinantyo/terraform-docker-sample/main/scripts/tf-docker-template.sh)\"\n   ```\n\n2. Adjust the generated Terraform-Docker config to fit your project requirements.\n\n## Usage\n\n- Modify the Dockerfile(s) in the `docker/` directory to build your custom Docker images.\n- Define your Docker container resources in the `main.tf` file using the `docker_container` resource.\n- Use variables and modules as needed for project-specific configurations.\n- Run `terraform apply` to create or manage your Docker containers.\n\n**Note**: For production deployments, customize your Terraform configuration to work with your chosen IaaS provider (e.g., AWS, Azure, GCP) and set up remote state storage.\n\n## Contributing\n\nIf you have any ideas or suggestions, feel free to open an issue or a pull request.🤝 I would be happy to hear your thoughts.\n\n## License\n\nThis repository is open-source and available under the [MIT License](LICENSE).\n\n## Acknowledgements\n\n- [Terraform Docker Module](https://registry.terraform.io/providers/kreuzwerker/docker/latest) - This repository is based on the Terraform Docker module by [kreuzwerker](https://github.com/kreuzwerker).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrianfinantyo%2Fterraform-docker-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadrianfinantyo%2Fterraform-docker-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrianfinantyo%2Fterraform-docker-sample/lists"}