Question about headers in Docker Swarm

When I add a customrequestheader in Docker Swarm, does it add it to the Docker service? It appears only to add it do the FQDN.

     labels:
       - "traefik.enable=true"
       - "traefik.http.middlewares.orgid.headers.customrequestheaders.X-Scope-OrgID=0"
       - "traefik.http.routers.distributor.middlewares=orgid@docker"
       - "traefik.http.routers.distributor.rule=Host(`distributor.my.domain`)"
       - "traefik.http.routers.distributor.tls=true"
       - "traefik.http.services.distributor.loadbalancer.server.port=9009"

I'd like the services in the swarm to use the headers. Trying to replicate the Nginx Cortex Gateway configuration found here https://github.com/cortexproject/cortex/blob/master/k8s/nginx-config.yaml

Thanks for joining the community Chewrocca, welcome!

I believe you're not seeing the headers on your internal service because they would need to route their traffic through the traefik proxy for this to work. If you're communicating through your services directly (via the service name), Traefik is not involved in that communication and as such, would not inject headers.