Reverse Proxy

Reverse Proxy


Port conflicts!

Caused by multiple services on one host

Reverse Proxy

Routing of requests to correct container

Based on Host header in HTTP and SNI in HTTPS

Desired Features


Automatic certificates

Dynamic wiring

Reverse Proxy

HTTP: Routing based on Host header

HTTPS: Routing based on Server Name Indication (SNI)

Can even use separate networks for frontend and backend

Demo: Reverse Proxy

Automatic wiring using Traefik:

docker-compose up -d
  docker-compose ps -q proxy | \
      xargs docker inspect \
          -f ''

Use network_mode: host to avoid port publishing

Testing access:

curl --silent --resolve$IP \

curl --silent --resolve$IP \