This directory contains example configurations for common use cases.
Simple single-service routing configuration.
cd basic
docker-compose up -dMultiple services with path-based routing, authentication, and rate limiting.
cd multi-app
docker-compose up -dMultiple backends with different load balancing strategies.
cd loadbalancing
# Add hosts to /etc/hosts:
# 127.0.0.1 rr.example.local weighted.example.local sticky.example.local leastconn.example.local
docker-compose up -dAutomatic SSL/TLS certificate provisioning with Let's Encrypt.
cd tls-auto
# Edit docker-compose.yml to set your domain and email
docker-compose up -dWebSocket proxying with sticky sessions for stateful connections.
cd websocket
# Add hosts to /etc/hosts:
# 127.0.0.1 ws.example.local chat.example.local
docker-compose up -d
# Test: wscat -c ws://ws.example.local/wsPer-IP and per-header rate limiting with circuit breaker.
cd rate-limiting
# Add hosts to /etc/hosts:
# 127.0.0.1 api.example.local public.example.local admin.example.local
docker-compose up -d
# Test: for i in $(seq 1 20); do curl -s -o /dev/null -w "%{http_code}\n" http://api.example.local; doneFull microservices architecture with path-based routing, per-service middleware, health checks, and load balancing.
cd microservices
# Add to /etc/hosts: 127.0.0.1 app.example.local
docker-compose up -d
# curl http://app.example.local/api/