Three isolated Nginx configurations covering real-world use cases. Each is in its own directory with a docker-compose.yml — run any of them independently.
| Directory | Pattern | Command |
|---|---|---|
static-hosting/ |
Serve React/static build with cache headers + gzip | cd static-hosting && docker compose up |
reverse-proxy/ |
Forward /api/* to backend, preserve headers |
cd reverse-proxy && docker compose up |
load-balancer/ |
Round-robin across two app instances | cd load-balancer && docker compose up |
Nginx · Docker · curl