https://github.com/ahmedalaa14/apache-loadbalancer
Creating a single HAProxy and two Apache containers with Docker compose.
https://github.com/ahmedalaa14/apache-loadbalancer
apache docker-compose hapr html5 load-balancer
Last synced: over 1 year ago
JSON representation
Creating a single HAProxy and two Apache containers with Docker compose.
- Host: GitHub
- URL: https://github.com/ahmedalaa14/apache-loadbalancer
- Owner: ahmedalaa14
- Created: 2024-01-13T17:45:27.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-08-18T05:16:38.000Z (almost 2 years ago)
- Last Synced: 2025-02-01T17:42:30.367Z (over 1 year ago)
- Topics: apache, docker-compose, hapr, html5, load-balancer
- Language: Dockerfile
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Creating a single HAProxy and two Apache containers with Docker compose.
- In this porject we will create two identical Apache servers and one HAProxy container.
- When we want to access our website, We will be calling HAProxy, not the Apache servers. HAProxy will divert traffic to Apache servers in "round-robin" fashion.
1. HTTP Request goes to HAProxy container.
2. HAProxy container goes either Apache container 1 or 2.
3. Response is served by Apache container 1 or 2.
* To test this use command
$ for in in {1..10} ; do echo "the working server is curl -s http://127.0.0.1:90/"; done