{"id":29167221,"url":"https://github.com/palmabit-it/terraform-digitalocean-docker","last_synced_at":"2026-04-20T10:32:39.580Z","repository":{"id":79516836,"uuid":"197753514","full_name":"Palmabit-IT/terraform-digitalocean-docker","owner":"Palmabit-IT","description":"Terraform, Digital Ocean, Nginx, Docker, Let's Encrypt","archived":false,"fork":false,"pushed_at":"2019-07-26T11:34:20.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-01T09:08:33.773Z","etag":null,"topics":["digitalocean","docker","letsencrypt","nginx","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/Palmabit-IT.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":"2019-07-19T10:28:26.000Z","updated_at":"2019-07-26T11:34:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"afc3e729-99b6-4f6a-80e2-fd2d89a14df2","html_url":"https://github.com/Palmabit-IT/terraform-digitalocean-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/Palmabit-IT/terraform-digitalocean-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Palmabit-IT%2Fterraform-digitalocean-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Palmabit-IT%2Fterraform-digitalocean-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Palmabit-IT%2Fterraform-digitalocean-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Palmabit-IT%2Fterraform-digitalocean-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Palmabit-IT","download_url":"https://codeload.github.com/Palmabit-IT/terraform-digitalocean-docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Palmabit-IT%2Fterraform-digitalocean-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32043029,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"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":["digitalocean","docker","letsencrypt","nginx","terraform"],"created_at":"2025-07-01T09:08:32.709Z","updated_at":"2026-04-20T10:32:39.573Z","avatar_url":"https://github.com/Palmabit-IT.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform Digitalocean\n\nTerraform to setup a droplet with nginx, docker, gitlab user for CI, let's encrypt and DO monitoring. \n\n\n## Prerequisites\n\n* Terraform v0.12.4 - [https://www.terraform.io/](https://www.terraform.io/)\n* Digital Ocean Token [https://www.digitalocean.com/docs/api/create-personal-access-token/](https://www.digitalocean.com/docs/api/create-personal-access-token/)\n\n## Environment variables (optional)\n\n* DO_TOKEN - api token for digital ocean which can be found in your DigitalOcean Account under \"API\"\n* ssh_fingerprints - the list of ssh fingerprints to use to connect to your newly created droplets\n* TF_LOG_PATH\n* TF_LOG\n\nExample DO_TOKEN:\n\n```\nexport DO_TOKEN=5f58.....\nexport TF_LOG_PATH=\"terraform.log\"\nexport TF_LOG_PATH=TRACE\n```\n\nGet ssh_fingerprint:\n\n```\n$ ssh-keygen -E md5 -lf ~/.ssh/id_rsa.pub | awk '{print $2}'\n```\n\n\n## How to run\n\n### Init\n\n```\n$  terraform init\n```\n\n\n### Show validate\n\n```\n$  terraform validate\n```\n\n### Create plan\n\n```\n$  terraform plan -out=tfplan -input=false \n    -var \"do_token=${DO_TOKEN}\"\n    -var \"private_key_path=$HOME/.ssh/id_rsa\"\n    -var 'ssh_fingerprints=[\"${SSH_FINGERPRINT}\"]'\n    -var \"droplet_name=My_Droplet\"     \n```\n\n### Show plan\n\n```\n$  terraform show\n```\n\n### Execute plan\n\n```\n$  terraform apply tfplan\n```\n\nIf the Droplet already exists when you add these lines you will need to run\n\n```\n$  terraform refresh\n```\n\n### Destroy\n\n```\n$  terraform destroy -input=false \n    -var \"do_token=${DO_TOKEN}\" \n    -var \"private_key_path=$HOME/.ssh/id_rsa\"\n    -var 'ssh_fingerprints=[\"${SSH_FINGERPRINT}\"]'\n    -var \"droplet_name=My_Droplet\"   \n```\n\n## Login\n\n```\nssh root@$(terraform output droplet_ipv4)\n```\n\n## TODO\n\n* copy script for execution\n* copy configuration from file\n* set up firewall\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpalmabit-it%2Fterraform-digitalocean-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpalmabit-it%2Fterraform-digitalocean-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpalmabit-it%2Fterraform-digitalocean-docker/lists"}