Bad gateway on traefik docker
Traefik needs to have a common network with the containers it is connecting to. In this case, you need to run containers with --net=traefik_proxy
.
If you're container is on multiple networks, you'll also need the label traefik.docker.network=traefik_proxy
to tell traefik which of those networks to use.