This custom nginx container is designed to act as a load balancer for the a11y-proxy service in your Docker Compose deployment. The container is built on top of the official nginx image and includes a custom nginx.conf
configuration file.
- Load balances traffic between multiple instances of the a11y-proxy service
- Uses the least connection algorithm for load balancing
- Listens on port 80 for incoming requests
- Docker
- Docker Compose
Ensure that you have the following files in your project directory:
Dockerfile
: Custom Dockerfile for building the nginx containernginx.conf
: Custom nginx configuration file
The nginx.conf configuration file is embedded in the custom nginx container. To modify the load balancer configuration, edit the nginx.conf file and rebuild the container using the docker-compose up --build command.