{"id":24650452,"url":"https://github.com/sporestudio/load-balancer","last_synced_at":"2026-05-11T04:50:40.751Z","repository":{"id":273520401,"uuid":"919986245","full_name":"sporestudio/load-balancer","owner":"sporestudio","description":"Load balancer to handle requests between two HTTP web servers in Nginx.","archived":false,"fork":false,"pushed_at":"2025-01-21T11:38:04.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T12:25:48.739Z","etag":null,"topics":["docker-compose","haproxy","makefile","nginx"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sporestudio.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":"2025-01-21T11:14:36.000Z","updated_at":"2025-01-21T11:40:30.000Z","dependencies_parsed_at":"2025-01-21T12:36:25.032Z","dependency_job_id":null,"html_url":"https://github.com/sporestudio/load-balancer","commit_stats":null,"previous_names":["sporestudio/load-balancer"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sporestudio%2Fload-balancer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sporestudio%2Fload-balancer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sporestudio%2Fload-balancer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sporestudio%2Fload-balancer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sporestudio","download_url":"https://codeload.github.com/sporestudio/load-balancer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244685678,"owners_count":20493308,"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-compose","haproxy","makefile","nginx"],"created_at":"2025-01-25T18:15:08.132Z","updated_at":"2026-05-11T04:50:35.723Z","avatar_url":"https://github.com/sporestudio.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dockerized Load Balancer with Nginx and HAProxy\n\nThis project demonstrates a simple load balancer setup using Docker containers, featuring two Nginx servers serving the same web page and a HAProxy load balancer to distribute traffic between them.\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\".assets/imgs/haproxy-diag.png\" alt=\"haproxy-diagram\"\u003e\n\u003c/div\u003e\n\n---\n\n## Features\n\n- **Nginx Servers**:\n  - Two Nginx servers (`web1` and `web2`) configured to serve the same web page.\n  - Custom configuration for serving static files.\n- **HAProxy**:\n  - Load balancer using a round-robin algorithm.\n  - Routes traffic to both Nginx servers.\n\n\n## Requirements\n\n- [Docker](https://www.docker.com/) (20.10 or later recommended)\n- [Docker Compose](https://docs.docker.com/compose/) (v1.29 or later recommended)\n\n## Setup Instructions\n\n1. **Clone the repository**:\n    ```bash\n    $ git clone https://github.com/sporestudio/load-balancer.git\n    $ cd load-balancer\n    ```\n\n2. **Deploy the project**\n    ```bash\n    $ make deploy\n    ```\n\n3. **Stop the project**\n    ```bash\n    $ make stop\n    ```\n\n## License\n\nThis project is under \u003ca href=\"https://github.com/sporestudio/load-balancer/blob/main/LICENSE\"\u003eGNU General Public License\u003c/a\u003e.\n\n## Author\n\nThis project was created by \u003ca href=\"https://github.com/sporestudio/\"\u003esporestudio\u003c/a\u003e.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsporestudio%2Fload-balancer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsporestudio%2Fload-balancer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsporestudio%2Fload-balancer/lists"}