/ # ping traefik_proxy
PING traefik_proxy (10.0.27.110): 56 data bytes
64 bytes from 10.0.27.110: seq=0 ttl=64 time=0.100 ms
But.... nginx logs still show: 10.0.27.120 - - [26/Jun/2020:18:08:00 +0000] "GET /wp-content/upload.... Notice is not the same IP as the ping one, but still not the user IP.
I have found the service port needs to be published using the host binding instead of ingress. The side effect being that only the host that is running traefik publishes the port.
It works fine with the whoami container, but not with nginx any ideas about what can i do? I tried this but does not work: https://stackoverflow.com/a/44648488
I think the problem is nginx getting the real ip from traefik. i don't know how to get it but it's not a problem with docker overlay network since traefik is receiving the correct ip already