techno-tim / techno-tim.github.io

Open Source, Community Driven, Documentation for Techno Tim YouTube Videos/ Complete with examples for all your copy pasta needs!
https://technotim.live
1.04k stars 325 forks source link

traefik: pass client ip to container #236

Closed Christophe999s closed 1 year ago

Christophe999s commented 1 year ago

Thank you for the informative video's you keep posting! I was having some issues with the client ip not being passed to my bitwarden container, and made these adjustments to the traefik docker-compose file:

version: '3.3'
     - target: 80
       published: 80
       protocol: tcp
       mode: host
     - target: 443
       published: 443
       protocol: tcp
       mode: host

Found the solution on https://dockerswarm.rocks/traefik/#getting-the-client-ip