{"id":22144830,"url":"https://github.com/gas-buddy/docker-api-haproxy","last_synced_at":"2026-03-19T21:57:46.673Z","repository":{"id":49965526,"uuid":"80373580","full_name":"gas-buddy/docker-api-haproxy","owner":"gas-buddy","description":"A docker image for an HAProxy using confd for zero downtime reloads","archived":false,"fork":false,"pushed_at":"2023-08-16T22:21:31.000Z","size":35,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-29T17:24:05.192Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Makefile","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/gas-buddy.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}},"created_at":"2017-01-29T21:23:09.000Z","updated_at":"2023-08-16T22:21:34.000Z","dependencies_parsed_at":"2024-12-02T02:33:06.317Z","dependency_job_id":null,"html_url":"https://github.com/gas-buddy/docker-api-haproxy","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gas-buddy%2Fdocker-api-haproxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gas-buddy%2Fdocker-api-haproxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gas-buddy%2Fdocker-api-haproxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gas-buddy%2Fdocker-api-haproxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gas-buddy","download_url":"https://codeload.github.com/gas-buddy/docker-api-haproxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245267567,"owners_count":20587459,"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":[],"created_at":"2024-12-01T22:33:53.702Z","updated_at":"2026-01-27T20:39:20.567Z","avatar_url":"https://github.com/gas-buddy.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"gasbuddy/api-haproxy\n==================================\n\nA containerized unit of [haproxy](http://www.haproxy.org/) +\n[confd](https://github.com/kelseyhightower/confd)\n\nThis creates a docker container that bundles haproxy and confd. The entrypoint script\n- sets an environment variable for a locally-running etcd instance (in our case an etcd node running proxy mode)\n- configures confd to check etcd address at first run and to use the keys defined in **confd.toml** to populate the haproxy config file\n- starts haproxy using that configured file\n- runs confd with the **-watch** flag so that it dynamically reloads haproxy every time a change in the specified etcd keys is detected\n\nPaths\n=====\n`api-haproxy` expects the configuration to reside under the `/proxy` key.\n\nSetup\n=====\n\nYou'll need an etcd cluster. For development and testing, you can just\nrun one:\n\n```\nexport HostIP=...put your host ip address here...\ndocker run -d -v /usr/share/ca-certificates/:/etc/ssl/certs \\\n --name etcd0 --network=tooling_gb_internal quay.io/coreos/etcd etcd \\\n -name etcd0 \\\n -advertise-client-urls http://{$HostIP}:2379,http://{$HostIP}:4001 \\\n -listen-client-urls http://0.0.0.0:2379,http://0.0.0.0:4001 \\\n -initial-advertise-peer-urls http://{$HostIP}:2380 \\\n -listen-peer-urls http://0.0.0.0:2380 \\\n -initial-cluster-token etcd-cluster-1 \\\n -initial-cluster etcd0=http://{$HostIP}:2380 \\\n -initial-cluster-state new\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgas-buddy%2Fdocker-api-haproxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgas-buddy%2Fdocker-api-haproxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgas-buddy%2Fdocker-api-haproxy/lists"}