{"id":43523107,"url":"https://github.com/mabrarov/haproxy-test","last_synced_at":"2026-02-03T14:35:47.170Z","repository":{"id":149643205,"uuid":"213752149","full_name":"mabrarov/haproxy-test","owner":"mabrarov","description":"Testing HAProxy","archived":false,"fork":false,"pushed_at":"2025-01-14T02:16:59.000Z","size":25,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-14T03:24:10.160Z","etag":null,"topics":["discovery","dns","docker","docker-compose","haproxy","nginx"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/mabrarov.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":"2019-10-08T20:54:11.000Z","updated_at":"2025-01-14T02:17:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"590ec93e-0258-4749-abef-db29530b6ead","html_url":"https://github.com/mabrarov/haproxy-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mabrarov/haproxy-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mabrarov%2Fhaproxy-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mabrarov%2Fhaproxy-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mabrarov%2Fhaproxy-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mabrarov%2Fhaproxy-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mabrarov","download_url":"https://codeload.github.com/mabrarov/haproxy-test/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mabrarov%2Fhaproxy-test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29047566,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T10:09:22.136Z","status":"ssl_error","status_checked_at":"2026-02-03T10:09:16.814Z","response_time":96,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["discovery","dns","docker","docker-compose","haproxy","nginx"],"created_at":"2026-02-03T14:35:43.622Z","updated_at":"2026-02-03T14:35:47.144Z","avatar_url":"https://github.com/mabrarov.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Testing HAProxy\n\nPrerequisites:\n\n1. Docker 20+\n1. [Docker Compose](https://docs.docker.com/compose/):\n    * [Docker Compose standalone](https://docs.docker.com/compose/install/standalone/) 2+ or\n    * [Docker Compose plugin](https://docs.docker.com/compose/install/linux/) (this README commands use Docker Compose plugin syntax)\n\nStart containers:\n\n```bash\ndocker compose up -d\n```\n\nAdd one more backend server:\n\n```bash\ndocker compose up -d --scale backend=2 --no-recreate\n```\n\nCheck output of balancer:\n\n```bash\ncurl -s http://localhost\n```\n\nOutput of balancer should look like:\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"en-US\"\u003e\n\u003chead\u003e\n\u003ctitle\u003eBackend\u003c/title\u003e\n\u003c/head\u003e\n\u003cbody\u003e\nhostname\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\nwhere `hostname` is the name of backend host which actually served request.\n\nEnsure that if output is requested multiple times then different `hostname` is returned. \n\nStop containers:\n\n```bash\ndocker compose stop\n```\n\nCleanup:\n\n```bash\ndocker compose down -v -t 0 \u0026\u0026 \\\ndocker rmi -f abrarov/haproxy-test-backend \u0026\u0026 \\\ndocker rmi -f abrarov/haproxy-test-balancer\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmabrarov%2Fhaproxy-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmabrarov%2Fhaproxy-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmabrarov%2Fhaproxy-test/lists"}