{"id":21423137,"url":"https://github.com/anav5704/nginx-load-balancer","last_synced_at":"2026-04-08T21:30:56.671Z","repository":{"id":263920228,"uuid":"891408876","full_name":"anav5704/nginx-load-balancer","owner":"anav5704","description":"Nginx load balancer running against 3 containers using Docker Compose","archived":false,"fork":false,"pushed_at":"2025-02-17T01:17:44.000Z","size":71,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-02T14:19:30.758Z","etag":null,"topics":["ansible","docker","gitlab-ci","honojs","nginx","oracle-cloud","terraform"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/anav5704.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,"zenodo":null}},"created_at":"2024-11-20T09:31:28.000Z","updated_at":"2025-02-17T01:17:47.000Z","dependencies_parsed_at":"2024-11-21T02:19:38.500Z","dependency_job_id":"16742ccb-99f4-4d12-9001-d7b16ebc0db1","html_url":"https://github.com/anav5704/nginx-load-balancer","commit_stats":null,"previous_names":["anav5704/nginx-load-balancer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/anav5704/nginx-load-balancer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anav5704%2Fnginx-load-balancer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anav5704%2Fnginx-load-balancer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anav5704%2Fnginx-load-balancer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anav5704%2Fnginx-load-balancer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anav5704","download_url":"https://codeload.github.com/anav5704/nginx-load-balancer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anav5704%2Fnginx-load-balancer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31575336,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["ansible","docker","gitlab-ci","honojs","nginx","oracle-cloud","terraform"],"created_at":"2024-11-22T21:14:28.833Z","updated_at":"2026-04-08T21:30:56.656Z","avatar_url":"https://github.com/anav5704.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nginx Load  Balancer\n\nThis is a simple Nginx load balancer that runs against 3 Docker containers. Each container runs a simple [Hono.js](https://hono.dev) server on port `3000`, while Docker compose is used to map these ports to `3001`, `3002` and `3003`. This load balancer is deployed on Oracle Cloud using Terraform to provision a VM and Ansible to configure the VM.\n\n![Architecture Diagram](./docs/architecture.png)\n\n\n## Technologies Used\n\n- Nginx\n- Docker\n- Docker Compose\n- Hono JS\n- Terraform [view source](https://github.com/anav5704/learning-terraform)\n- Ansible [view source](https://github.com/anav5704/learning-ansible)\n\n## Getting Started\n\nMake sure you have [Nginx](https://nginx.org) and [Docker](https://docker.com) installed on your machine. \n\n### Build and Start Containers\n\n\nFirst, build and start the containers using `docker-compose`:\n\n```sh\ndocker-compose up --build -d\n```\n\n### Configure Nginx\n\nNext, you need to replace the default `nginx.conf` on your machine with the one provided in this [here](https://github.com/anav5704/learning-ansible/blob/main/config/nginx.conf). This file should be located at `C:/nginx/conf/nginx.conf` on Windows and `/etc/nginx/nginx.conf` on MacOS. \n\n\nThen, start up Nginx on Windows using:\n\n```sh\ncd path/to/nginx\n```\n\n```sh\nnginx.exe\n```\n\nOr this if you're on a Mac:\n\n```sh\nsudo nginx\n```\n\n### Access Load Balancer\n\nFinally, open your browser and go to `http://localhost:8080` to see the response. Each time you refresh, the server that sends the response will change.\n\n## Learning Resources\n\n- [What is Nginx?](https://youtu.be/iInUBOVeBCc?si=HgCJSpQSdJ7u2gEP)\n- [Nginx with Docker](https://youtu.be/q8OleYuqntY?si=xjgTwVrMyM8DginP)\n- [Docker crash course](https://youtu.be/pg19Z8LL06w?si=7v0qYUgNuhGS1wmn)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanav5704%2Fnginx-load-balancer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanav5704%2Fnginx-load-balancer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanav5704%2Fnginx-load-balancer/lists"}