Trusted user configuration when using Docker?

I’ve installed HA on a Synology using Docker. Now I want to set up a trusted user using an IP address like explained in Authentication Providers.

But because I’m using Docker, all traffic is coming from 172.17.0.2. I’ve already set up trusted proxies:

http:
  use_x_forwarded_for: true
  trusted_proxies:
    - 172.17.0.2

But how can I use trusted users?