This example runs 4 different docker containers:
- a
traefik
reverse proxy - 3
caddy
instances (simple/modern web server with minimal config)
The 3 applications are completely isolated from the outside network, and are neither accessible nor can access the WAN.
The HTTP routing (and eventual SSL termination) is up to traefik or your reverse proxy of choice.
Careful: this CLI script will use sudo rights, please audit it before running it!
./run.sh
Sorry, but I did not get the point. If Traefik is not balancing through the app1,app2,app3 via the default port 80, I believe that it is kind far from reality. If you expose an API, and you have to pass an extra header to define where you will execute the endpoint:
curl -H Host:app1.test http://127.0.0.1
Could you please offer a way to load-balancer the apps through a Traefik port, preferentially the 80?
Many thanks in advance,