How do you structure a reverse proxy in front of containers?
IntermediateProductionArchitecture & Design Decisions
Answer
Only the proxy (Traefik, nginx, Caddy, ALB) publishes 80/443; apps join an internal network and are reached by service name. The proxy terminates TLS (Let's Encrypt or ACM), handles routing by host/path, and adds timeouts, rate limits and security headers. Traefik discovers services from Docker labels so new containers get routes automatically.
More on Architecture & Design Decisions
How would you design a container build-and-deploy pipeline from commit to production?AdvancedWhen should you use Docker Compose, Swarm, ECS, or Kubernetes?IntermediateHow do you decide how many processes belong in one container?BeginnerHow do you design the config strategy for containerized apps (12-factor)?IntermediateHow would you containerize a legacy app that writes to local disk and holds sessions in memory?AdvancedAlpine or Debian-slim for a Python service?Intermediate