Proxying traffic from Docker containers with Traefik

Traefik is a fast, powerful, and easy-to-use reverse proxy. You run it in a container and publish the HTTP (or HTTPS) port, and configure the container to listen for events from the Docker Engine API:

docker container run -d -P ` --volume \\.\pipe\docker_engine:\\.\pipe\docker_engine ` sixeyed/traefik:v1.7.8-windowsservercore-ltsc2019 ` --docker --docker.endpoint=npipe:////./pipe/docker_engine
Traefik is an official image on Docker Hub, but just like NATS the only Windows images available are based on Windows Server 2016. I'm using my own image here, based on Windows Server 2019. The Dockerfile is in my sixeyed/dockerfiles-windows repository on GitHub, but you should check Docker Hub to ...

Get Docker on Windows - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.