{"id":19768714,"url":"https://github.com/terraform-do-modules/terraform-digitalocean-container-registry","last_synced_at":"2026-02-25T17:17:03.648Z","repository":{"id":178275267,"uuid":"659609874","full_name":"terraform-do-modules/terraform-digitalocean-container-registry","owner":"terraform-do-modules","description":"Terraform module to create container registry. The DigitalOcean Container Registry (DOCR) is a private Docker image registry with additional tooling support that enables integration with your Docker environment and DigitalOcean Kubernetes clusters.","archived":false,"fork":false,"pushed_at":"2026-02-06T12:54:58.000Z","size":35,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-02-06T20:47:16.014Z","etag":null,"topics":["clouddrove","devops","digitalocean","digitalocean-container-registry","digitalocean-terraform-module","hackoctoberfest","iac-terraform","terraform","terraform-module"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/terraform-do-modules.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-06-28T07:37:41.000Z","updated_at":"2026-02-06T12:55:02.000Z","dependencies_parsed_at":"2024-01-17T20:10:54.206Z","dependency_job_id":"6be52c61-37b8-4934-878a-9812f4aa83ee","html_url":"https://github.com/terraform-do-modules/terraform-digitalocean-container-registry","commit_stats":null,"previous_names":["terraform-do-modules/terraform-digitalocean-container-registry"],"tags_count":4,"template":false,"template_full_name":"clouddrove/terraform-module-template","purl":"pkg:github/terraform-do-modules/terraform-digitalocean-container-registry","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terraform-do-modules%2Fterraform-digitalocean-container-registry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terraform-do-modules%2Fterraform-digitalocean-container-registry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terraform-do-modules%2Fterraform-digitalocean-container-registry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terraform-do-modules%2Fterraform-digitalocean-container-registry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/terraform-do-modules","download_url":"https://codeload.github.com/terraform-do-modules/terraform-digitalocean-container-registry/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terraform-do-modules%2Fterraform-digitalocean-container-registry/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29360644,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T01:03:07.613Z","status":"online","status_checked_at":"2026-02-12T02:00:06.911Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["clouddrove","devops","digitalocean","digitalocean-container-registry","digitalocean-terraform-module","hackoctoberfest","iac-terraform","terraform","terraform-module"],"created_at":"2024-11-12T04:39:55.421Z","updated_at":"2026-02-12T06:23:16.571Z","avatar_url":"https://github.com/terraform-do-modules.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- This file was automatically generated by the `geine`. Make all changes to `README.yaml` and run `make readme` to rebuild this file. --\u003e\n\n\u003cp align=\"center\"\u003e \u003cimg src=\"https://user-images.githubusercontent.com/50652676/62349836-882fef80-b51e-11e9-99e3-7b974309c7e3.png\" width=\"100\" height=\"100\"\u003e\u003c/p\u003e\n\n\n\u003ch1 align=\"center\"\u003e\n    Terraform Digitalocean Container Registry\n\n\n\u003c/h1\u003e\n\n\u003cp align=\"center\" style=\"font-size: 1.2rem;\"\u003e \n    Terraform module to create Digitalocean container registry service resource on Digitalocean.\n     \u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\n\u003ca href=\"https://github.com/terraform-do-modules/terraform-digitalocean-container-registry/releases/latest\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/release/terraform-do-modules/terraform-digitalocean-container-registry.svg\" alt=\"Latest Release\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://github.com/terraform-do-modules/terraform-digitalocean-container-registry/actions/workflows/tfsec.yml\"\u003e\n  \u003cimg src=\"https://github.com/terraform-do-modules/terraform-digitalocean-container-registry/actions/workflows/tfsec.yml/badge.svg\" alt=\"tfsec\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://www.terraform.io\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Terraform-v1.4.6-green\" alt=\"Terraform\"\u003e\n\u003c/a\u003e\n\u003ca href=\"LICENSE.md\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/License-APACHE-blue.svg\" alt=\"Licence\"\u003e\n\u003c/a\u003e\n\n\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n\n\u003ca href='https://facebook.com/sharer/sharer.php?u=https://github.com/terraform-do-modules/terraform-digitalocean-container-registry'\u003e\n  \u003cimg title=\"Share on Facebook\" src=\"https://user-images.githubusercontent.com/50652676/62817743-4f64cb80-bb59-11e9-90c7-b057252ded50.png\" /\u003e\n\u003c/a\u003e\n\u003ca href='https://www.linkedin.com/shareArticle?mini=true\u0026title=Terraform+Digitalocean+Container+Registry\u0026url=https://github.com/terraform-do-modules/terraform-digitalocean-container-registry'\u003e\n  \u003cimg title=\"Share on LinkedIn\" src=\"https://user-images.githubusercontent.com/50652676/62817742-4e339e80-bb59-11e9-87b9-a1f68cae1049.png\" /\u003e\n\u003c/a\u003e\n\u003ca href='https://twitter.com/intent/tweet/?text=Terraform+Digitalocean+Container+Registry\u0026url=https://github.com/terraform-do-modules/terraform-digitalocean-container-registry'\u003e\n  \u003cimg title=\"Share on Twitter\" src=\"https://user-images.githubusercontent.com/50652676/62817740-4c69db00-bb59-11e9-8a79-3580fbbf6d5c.png\" /\u003e\n\u003c/a\u003e\n\n\u003c/p\u003e\n\u003chr\u003e\n\n\nWe eat, drink, sleep and most importantly love **DevOps**. We are working towards strategies for standardizing architecture while ensuring security for the infrastructure. We are strong believer of the philosophy \u003cb\u003eBigger problems are always solved by breaking them into smaller manageable problems\u003c/b\u003e. Resonating with microservices architecture, it is considered best-practice to run database, cluster, storage in smaller \u003cb\u003econnected yet manageable pieces\u003c/b\u003e within the infrastructure. \n\nThis module is basically combination of [Terraform open source](https://www.terraform.io/) and includes automatation tests and examples. It also helps to create and improve your infrastructure with minimalistic code instead of maintaining the whole infrastructure code yourself.\n\nWe have [*fifty plus terraform modules*][terraform_modules]. A few of them are comepleted and are available for open source usage while a few others are in progress.\n\n\n\n\n## Prerequisites\n\nThis module has a few dependencies: \n- [Terraform 1.4.6](https://learn.hashicorp.com/terraform/getting-started/install.html)\n\n\n\n\n\n\n\n## Examples\n\n\n**IMPORTANT:** Since the `master` branch used in `source` varies based on new modifications, we suggest that you use the release versions [here](https://github.com/terraform-do-modules/terraform-digitalocean-container-registry/releases).\n\n\n### Simple Example\nHere is an example of how you can use this module in your inventory structure:\n```hcl\n    module \"container-registry\" {\n      source                 = \"terraform-do-modules/container-registry/digitalocean\"\n      version                = \"1.0.0\"\n      name                   = local.name\n      environment            = local.environment\n      region                 = local.region\n      subscription_tier_slug = \"starter\"\n    }\n```\n\n\n\n\n\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| enabled | Whether to create the resources. Set to `false` to prevent the module from creating any resources. | `bool` | `true` | no |\n| environment | Environment (e.g. `prod`, `dev`, `staging`). | `string` | `\"\"` | no |\n| expiry\\_seconds | The amount of time to pass before the Docker credentials expire in seconds. Defaults to 1576800000, or roughly 50 years. Must be greater than 0 and less than 1576800000. | `number` | `1576800000` | no |\n| label\\_order | Label order, e.g. `name`,`application`. | `list(any)` | \u003cpre\u003e[\u003cbr\u003e  \"name\",\u003cbr\u003e  \"environment\"\u003cbr\u003e]\u003c/pre\u003e | no |\n| managedby | ManagedBy, eg 'terraform-do-modules' or 'hello@clouddrove.com' | `string` | `\"terraform-do-modules\"` | no |\n| name | Name  (e.g. `app` or `cluster`). | `string` | `\"\"` | no |\n| region | The region to create VPC, like `london-1` , `bangalore-1` ,`newyork-3` `toronto-1`. | `string` | `\"syd1\"` | no |\n| subscription\\_tier\\_slug | The slug identifier for the subscription tier to use (starter, basic, or professional). | `string` | `\"starter\"` | no |\n| write | Allow for write access to the container registry. Defaults to false. | `bool` | `false` | no |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| created\\_at | The date and time when the registry was created. |\n| credential\\_expiration\\_time | The date and time the registry access token will expire. |\n| docker\\_credentials | Credentials for the container registry. |\n| endpoint | The URL endpoint of the container registry. |\n| expiry\\_seconds | Number of seconds after creation for token to expire. |\n| id | The id of the container registry. |\n| name | The name of the container registry. |\n| region | The slug identifier for the region. |\n| server\\_url | The domain of the container registry. |\n| storage\\_usage\\_bytes | The amount of storage used in the registry in bytes. |\n| subscription\\_tier\\_slug | The slug identifier for the subscription tier. |\n\n\n\n\n## Testing\nIn this module testing is performed with [terratest](https://github.com/gruntwork-io/terratest) and it creates a small piece of infrastructure, matches the output like ARN, ID and Tags name etc and destroy infrastructure in your AWS account. This testing is written in GO, so you need a [GO environment](https://golang.org/doc/install) in your system. \n\nYou need to run the following command in the testing folder:\n```hcl\n  go test -run Test\n```\n\n\n\n## Feedback \nIf you come accross a bug or have any feedback, please log it in our [issue tracker](https://github.com/terraform-do-modules/terraform-digitalocean-container-registry/issues), or feel free to drop us an email at [hello@clouddrove.com](mailto:hello@clouddrove.com).\n\nIf you have found it worth your time, go ahead and give us a ★ on [our GitHub](https://github.com/terraform-do-modules/terraform-digitalocean-container-registry)!\n\n## About us\n\nAt [CloudDrove][website], we offer expert guidance, implementation support and services to help organisations accelerate their journey to the cloud. Our services include docker and container orchestration, cloud migration and adoption, infrastructure automation, application modernisation and remediation, and performance engineering.\n\n\u003cp align=\"center\"\u003eWe are \u003cb\u003e The Cloud Experts!\u003c/b\u003e\u003c/p\u003e\n\u003chr /\u003e\n\u003cp align=\"center\"\u003eWe ❤️  \u003ca href=\"https://github.com/clouddrove\"\u003eOpen Source\u003c/a\u003e and you can check out \u003ca href=\"https://github.com/clouddrove\"\u003eour other modules\u003c/a\u003e to get help with your new Cloud ideas.\u003c/p\u003e\n\n  [website]: https://clouddrove.com\n  [github]: https://github.com/clouddrove\n  [linkedin]: https://cpco.io/linkedin\n  [twitter]: https://twitter.com/clouddrove/\n  [email]: https://clouddrove.com/contact-us.html\n  [terraform_modules]: https://github.com/clouddrove?utf8=%E2%9C%93\u0026q=terraform-\u0026type=\u0026language=\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterraform-do-modules%2Fterraform-digitalocean-container-registry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fterraform-do-modules%2Fterraform-digitalocean-container-registry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterraform-do-modules%2Fterraform-digitalocean-container-registry/lists"}