what is the best or recommended way to use a reverse proxy (traefik) with docker compose? I want the proxy to listen on two different native host interfaces, serving different services on each interface, and forwarding the requests to other containers on a dedicated docker network. Say:
Host interfaces are
Docker network is
traefik is supposed to listen on
eth1 for requests, and needs access to docker containers on
If I use
network_mode: host, I cannot use
networks:, if I use
networks: then I cannot find a way to access
eth1. Initially, I created an extra network, but then I have to forward packets from eth0 to the extra network - which I don’t really want to do (what’s the use) and didn’t successfully manage to do either.
Thanks a lot!