How to forward request IP to service in Traefik v2?

HELLO

You have to publish the port in host mode :

Example

version: "3.6"

services:

  app:
    image: "traefik:v2.0.0"

    ports:
      - target: 80
        published: 80
        protocol: tcp
        mode: host
      - target: 443
        published: 443
        protocol: tcp
        mode: host
        .....