{"id":19656791,"url":"https://github.com/daggerok/docker-haproxy-example","last_synced_at":"2026-05-10T13:01:27.213Z","repository":{"id":151041515,"uuid":"167874837","full_name":"daggerok/docker-haproxy-example","owner":"daggerok","description":"HA proxy example: rote traffic in docker by using haproxy","archived":false,"fork":false,"pushed_at":"2019-01-28T01:40:03.000Z","size":62,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-10T00:45:44.528Z","etag":null,"topics":["docker","haproxy","haproxy-configuration","haproxy-docker"],"latest_commit_sha":null,"homepage":"","language":"Java","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/daggerok.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-01-28T00:26:46.000Z","updated_at":"2019-01-28T01:40:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"b0f6a162-f370-443f-aa88-602d2e64043e","html_url":"https://github.com/daggerok/docker-haproxy-example","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/daggerok%2Fdocker-haproxy-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Fdocker-haproxy-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Fdocker-haproxy-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Fdocker-haproxy-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daggerok","download_url":"https://codeload.github.com/daggerok/docker-haproxy-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240964932,"owners_count":19885832,"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":["docker","haproxy","haproxy-configuration","haproxy-docker"],"created_at":"2024-11-11T15:28:55.867Z","updated_at":"2026-05-10T13:01:22.153Z","avatar_url":"https://github.com/daggerok.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# haproxy\nHow to rote traffic in docker by using haproxy\n\n## flow\n\n```\n                                 /\n                                 /web1**  +------+\n                               +---------\u003e| app1 |\n +---------+    +----------+   |          +------+\n | Browser |\u003c--\u003e| HA proxy |\u003c--+\n +---------+    +----------+   | /web2**  +------+\n                               +---------\u003e| app2 |\n                                          +------+\n```\n\n## build run and test\n\n_build_\n\n```bash\n./mvnw -f app/pom.xml\n```\n\n_run_\n\n```bash\ndocker-compose up --build --force-recreate --remove-orphans\n```\n\n_test_\n\n```bash\nhttp :80/web1-hostname\n{\n    \"hostname\": \"27f78c8df6da\"\n}\n\nhttp :80/web2-hostname\n{\n    \"hostname\": \"01a9b26cbcd8\"\n}\n\nhttp :80/hostn\n{\n    \"hostname\": \"27f78c8df6da\"\n}\n```\n\n_tear down_\n\n```bash\ndocker-compose down -v\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaggerok%2Fdocker-haproxy-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaggerok%2Fdocker-haproxy-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaggerok%2Fdocker-haproxy-example/lists"}