This repository contains code examples from the blog post Basics: Loadbalancing with NGINX. The guide demonstrates how to set up a simple load balancing environment using NGINX and Podman.
- Podman and Podman Compose installed
- For Ubuntu 22.04 LTS: Installation Guide.
The project consists of:
- A PHP web application to display server hostnames.
- An NGINX configuration for load balancing in round robin mode.
- A
compose.yaml
file to define and manage services with Podman Compose.
- Clone the repository and navigate to the project directory.
- Start the environment with:
podman-compose up
- Access the load balancer at
http://localhost:8080/
.
- Containerize applications with Podman.
- Configure NGINX for load balancing.
- Use Podman Compose to manage multi-service setups.