{"id":13514498,"url":"https://github.com/tmsmr/coder-hcloud","last_synced_at":"2026-03-19T19:39:48.689Z","repository":{"id":67785978,"uuid":"574644158","full_name":"tmsmr/coder-hcloud","owner":"tmsmr","description":"One-shot deployment for Coder on Hetzner Cloud","archived":false,"fork":false,"pushed_at":"2022-12-11T11:51:08.000Z","size":23,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T03:24:31.118Z","etag":null,"topics":["coder","hcloud"],"latest_commit_sha":null,"homepage":"","language":"HCL","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/tmsmr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2022-12-05T19:03:30.000Z","updated_at":"2024-03-31T11:26:05.000Z","dependencies_parsed_at":"2023-02-21T10:30:20.164Z","dependency_job_id":null,"html_url":"https://github.com/tmsmr/coder-hcloud","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmsmr%2Fcoder-hcloud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmsmr%2Fcoder-hcloud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmsmr%2Fcoder-hcloud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmsmr%2Fcoder-hcloud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmsmr","download_url":"https://codeload.github.com/tmsmr/coder-hcloud/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243732303,"owners_count":20338839,"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":["coder","hcloud"],"created_at":"2024-08-01T05:00:56.994Z","updated_at":"2026-03-19T19:39:43.651Z","avatar_url":"https://github.com/tmsmr.png","language":"HCL","readme":"# coder-hcloud\n*Terraform based one-shot deployment of [Coder OSS](https://github.com/coder/coder) on a [Hetzner Cloud](https://www.hetzner.com/de/cloud) instance.*\n\n## Quickstart\n- Copy `config.auto.tfvars.example` to `config.auto.tfvars`\n- Adjust `config.auto.tfvars`\n- `terraform init \u0026\u0026 terraform apply`\n- Create DNS records\n- Open Coder, login with the initial admin user\n- (Install Templates from [coder-templates](https://github.com/tmsmr/coder-templates))\n\n## A little bit more details\n\n### Configuration/Variables\n| Variable      | Default | Description                                                                                             |\n|---------------|---------|---------------------------------------------------------------------------------------------------------|\n| hcloud_apikey |         | A R/W API-Key for the Hetzner Cloud project Coder shall be deployed in                                  |\n| instance_type | cx11    | Instance type (https://www.hetzner.com/de/cloud) for the Coder node                                     |\n| location      | ngb1    | Location for the Coder node (nbg1, fsn1, hel1, ash)                                                     |\n| coder_domain  |         | Desired Domain for Coder (Used for CODER_ACCESS_URL, CODER_WILDCARD_ACCESS_URL and Caddy/Let's Encrypt) |\n| acme_email    |         | Administrative Email address used for Let's Encrypt and for the initial Coder user                      |\n\n### Deployment\n**SSH**\n\nTerraform creates keys for the client and the host. The host key is installed later using Cloud-init. The client key is registered in the Hetzner Cloud project and can be used later for regular maintenance tasks. You may use the preconfigured wrapper script `./bin/ssh` for easy access.\n\n**Firewall**\n\nA Hetzner Cloud Firewall is applied. Outbound traffic is allowed generally. Inbound traffic is restricted to ICMP and HTTP 80, 443.\n\n**Coder installation (Cloud-init)**\n\nCoder is managed via Docker Compose (Adapted from https://github.com/coder/coder/blob/main/docker-compose.yaml).\n- First, only Coder and Postgres is started...\n- When Coder is ready, the initial admin account is created...\n- After that, the Proxy (Caddy) is started as well\n\n**Maintenance**\n\nWhile the Debian updates are mostly managed via `unattended-upgrades`, **you have to take care of the updates for the Docker Compose stack (`/root/coder/docker-compose.yaml`) manually!**\n","funding_links":[],"categories":["Automation"],"sub_categories":["Miscellaneous"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmsmr%2Fcoder-hcloud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmsmr%2Fcoder-hcloud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmsmr%2Fcoder-hcloud/lists"}